• 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
NSRunLoops running in more than one mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSRunLoops running in more than one mode


  • Subject: NSRunLoops running in more than one mode
  • From: Joe Jones <email@hidden>
  • Date: Fri, 9 Dec 2005 09:03:31 -0800

Hi,

The documentation for NSRunLoop is vague to say the least. It covers some very basic information on how you can run your own run loop (say for a non-UI foundation tool). What it doesn't really make clear is how to run your loop in more than one mode. Is it possible to make two separate calls to -runMode:beforeDate: in the loop with each call using passing in a different mode?

The reason I ask is that I have an app that vends DO objects and so needs to pump the run loop using NSConnectionReplyMode. However, I also need to register for, post and receive NSNotifications within my tool. Currently the registration seems to fail and I think this might be because I am not running a run loop in NSDefaultLoopMode.

I also had the idea that I might have to register the notifications within my run loop loop but again I am unclear concerning this.

Any help in clarifying the whole run loop thing (and the NSNotification aspect as well) is GREATLY appreciated.

Thanx,
joe

_______________________________________________
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
  • Prev by Date: Re: run-time list of selectors in protocol?
  • Next by Date: Re: run-time list of selectors in protocol?
  • Previous by thread: Re: run-time list of selectors in protocol?
  • Next by thread: create a bufferarray from a string
  • Index(es):
    • Date
    • Thread