I\'m currently running the followin in Terminal to send a command over USB serial.
/Users/drummerboyx/Library/Scripts/arduino-serial -b 9600 -p /dev/tty.usbs
If you want to stick to Cocoa - Have a look at NSTask.