• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Loading NIB file from forked process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Loading NIB file from forked process
      • From: Will Mason <email@hidden>
References: 
 >Loading NIB file from forked process (From: Mark Allan <email@hidden>)

  • Prev by Date: socket & refresh
  • Next by Date: accessing AddressBook.data
  • Previous by thread: Loading NIB file from forked process
  • Next by thread: Re: Loading NIB file from forked process
  • Index(es):
    • Date
    • Thread