Re: Threads, RunLoops and performSelector:
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.