FROM : Dustin Voss
DATE : Wed Dec 01 22:17:11 2004
On 1 Dec, 2004, at 9:27 AM, Brendan Younger wrote:
> After quite a bit of tinkering, I've discovered that -[NSRunLoop
> performSelector:target:argument:order:modes:] isn't thread safe.
> However, I need to be able to perform a selector on a specific run
> loop (NOT just the main thread, so I can't user
> -performSelectorOnMainThread:etc.) and be able to trigger the
> performSelector from a different thread. Does anyone know of a good
> way to do this?
>
> Brendan Younger
You can try the InterThreadMessaging library. It's very easy.
Overview: http://cocoadev.com/?InterThreadMessaging
Download: http://homepage.mac.com/d.j.v./FileSharing3.html
DATE : Wed Dec 01 22:17:11 2004
On 1 Dec, 2004, at 9:27 AM, Brendan Younger wrote:
> After quite a bit of tinkering, I've discovered that -[NSRunLoop
> performSelector:target:argument:order:modes:] isn't thread safe.
> However, I need to be able to perform a selector on a specific run
> loop (NOT just the main thread, so I can't user
> -performSelectorOnMainThread:etc.) and be able to trigger the
> performSelector from a different thread. Does anyone know of a good
> way to do this?
>
> Brendan Younger
You can try the InterThreadMessaging library. It's very easy.
Overview: http://cocoadev.com/?InterThreadMessaging
Download: http://homepage.mac.com/d.j.v./FileSharing3.html
| Related mails | Author | Date |
|---|---|---|
| Brendan Younger | Dec 1, 18:27 | |
| Evan Schoenberg | Dec 1, 20:56 | |
| Dustin Voss | Dec 1, 22:17 |






Cocoa mail archive

