• 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: Bob Ippolito <email@hidden>
  • Date: Tue, 27 Apr 2004 14:52:12 -0400

On Apr 27, 2004, at 2: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?

In general you shouldn't use threads until you have to, so use NSTimer.

-bob
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSThread or NSTimer
      • From: Shawn Erickson <email@hidden>
References: 
 >NSThread or NSTimer (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: NSThread or NSTimer
  • Next by Date: Re: NSThread or NSTimer
  • Previous by thread: NSThread or NSTimer
  • Next by thread: Re: NSThread or NSTimer
  • Index(es):
    • Date
    • Thread