• 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: Threads, RunLoops and performSelector:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threads, RunLoops and performSelector:


  • Subject: Re: Threads, RunLoops and performSelector:
  • From: Nathan Day <email@hidden>
  • Date: Fri, 11 Apr 2003 23:06:09 +0930

I don't think you can use performSelector:target:argument:order:modes: like that look at my NDRunLoopMessenger class it does what you want, you can look at it to see how it works or just use it as is. <http://homepage.mac.com/nathan_day/pages/ source.html#NDRunLoopMessenger>

On Thursday, April 10, 2003, at 11:40 PM, Raphael Sebbe wrote:

I am trying to make secondary threads perform selector through their
running runloop. With no success.

Trying to use NSRunLoop's

performSelector:(SEL)aSelector target:(id)target argument:(id)arg
order:(unsigned)order modes:(NSArray *)modes;

from another thread. modes is an array containing NSDefaultRunLoopMode,
which is mode of the running runloop. I did put logs into the method
passed as aSelector, but nothing gets out. I tried to add
configureAsServer on the runloop, with no success. Is something missing
in my setup ? Do I have to add ports or something.

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Threads, RunLoops and performSelector: (From: Raphael Sebbe <email@hidden>)

  • Prev by Date: Re: Finding the insertion point in a text field
  • Next by Date: Re: General release rule
  • Previous by thread: Threads, RunLoops and performSelector:
  • Next by thread: NSMutableDictionary not sending release message to contained objects at dealloc time
  • Index(es):
    • Date
    • Thread