Re: Loading NIB file from forked process
Re: Loading NIB file from forked process
- Subject: Re: Loading NIB file from forked process
- From: Finlay Dobbie <email@hidden>
- Date: Sat, 12 Feb 2005 09:44:11 +0000
On Sat, 12 Feb 2005 03:58:17 +0000, Mark Allan <email@hidden> wrote:
> Within one of my Obj-C methods I'm forking off a child process so that
> I can do various tasks without blocking the GUI. Depending on the
> outcome of these tasks, I need to display a dialog box. The problem is
> that the NIB file doesn't load and consequently the dialog doesn't
> appear.
You can't do this. You cannot use the high-level frameworks (where use
is link against), fork() and expect stuff to work in the child
process. The only thing you can really do is immediately exec yourself
with another flag.
However, it sounds like you shouldn't be forking anyway. What you want
is a thread.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden