I tried to fork() a Cocoa process and setup a new Cocoa/ObjC environment but I get the error:
fork()
The process has forked and you cannot use this Cor
Mac OS X severely limits what you can do after a fork without execing. See the CAVEATS section of the fork man page. The allowed actions do not include using Cocoa or CoreFoundation, so you must call exec to start a new program.
exec