• 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: NSThread or NSTimer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSThread or NSTimer


  • Subject: Re: NSThread or NSTimer
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 27 Apr 2004 20:50:40 +0200

On mardi, avril 27, 2004, at 08:06 PM, Jesus De Meyer wrote:

I understand that NSThread is usually used with multiple document applications or when you wanna use a second processor.

But for simple applications that just need some kind of update method, what should I use? I ask because I have the impression that NSThread will add better performance than if I use an NSTimer, although I'm not sure if this statement is true.

Again, I'm talking about simple applications that only have need one "update loop", for example to update certain interface elements.

For this kind of task, what's better, NSThread or NSTimer.

NSTimer IMHO, as you can't directly update UI items from a NSThread and you probably would add a sleep period in your thread anyway.
_______________________________________________
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: 
 >NSThread or NSTimer (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: NSThread or NSTimer
  • Next by Date: Re: Is KVO really as complicated as I think?
  • Previous by thread: Re: NSThread or NSTimer
  • Next by thread: Re: NSThread or NSTimer
  • Index(es):
    • Date
    • Thread