• 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: Using NSTimer to call the main thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSTimer to call the main thread


  • Subject: Re: Using NSTimer to call the main thread
  • From: Peter Robinson <email@hidden>
  • Date: Fri, 28 Mar 2003 11:53:05 +0000

At 6:07 pm -0500 27/3/03, John Anderson wrote:

[...]We then are free to add new input signals without worrying about which thread they come from except to note that Apple's documentation indicates that NSRunLoop in NOT thread safe.

That's the kind of thing I'm worried about. I suppose that's the answer to my original question.

(2) If you were using 10.2, the simple way would be to call [NSObject performSelectorOnMainThread: withObject ...] on the object that you want to execute in the main thread.

Yes, that would be very easy.

Since, you are using 10.1. I highly recommend using Nathan Day's NSRunLoopMessenger instead.[...]

http://homepage.mac.com/nathan_day/

Looks very useful, thanks.

Peter
_______________________________________________
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: 
 >Re: Using NSTimer to call the main thread (From: John Anderson <email@hidden>)

  • Prev by Date: Re: Newbie question regarding NSWindow
  • Next by Date: Re: Using NSTimer to call the main thread
  • Previous by thread: Re: Using NSTimer to call the main thread
  • Next by thread: Re: Using NSTimer to call the main thread
  • Index(es):
    • Date
    • Thread