Mac OS Leopard: how to spawn an child "application"?
Mac OS Leopard: how to spawn an child "application"?
- Subject: Mac OS Leopard: how to spawn an child "application"?
- From: Nick <email@hidden>
- Date: Sat, 11 Jun 2011 18:32:42 +0300
Hi
In Mac OS 10.6 (Snow Leopard) it is pretty simple to launch another
application from within my application (in a way that my application becomes
a "parent" process to the child) - i either may call [NSTask launchTask], or
call fork()/exec() - either way, my process and the launched
process-application are related by parent-child (and i can use pipes or
socketpair for them to communicate).
In Mac OS 10.5 (Leopard) launching a process is simple as well, unless this
process is an Application (a bundle, that is supposed to have an icon in
dock). If i start it with NSTask, i get "Application not responding" icon in
dock (but the application works fine, only this behvior in Dock is very
irritating). I suppose this is happening because usually start of an
application is supposed to be performed by LaunchServices (my app has to
delegate this job to LS, and therefore my process is not a parent of this
newly spawned process).
Is there any way to remain a parent of a just launched application?
I know that Mac OS 10.5 Leopard is deprecated, but i can't help it - my boss
wants Leopard support.
Thank you!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden