Re: NSThread or NSTimer
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.