On Apr 11, 2008, at 7:35 AM, Don Arnel wrote:
Actually, while reading up on NSThread I cam across NSOperation which appears to spawn a new thread but is supposedly much cleaner to work with. It definately does the job for me. Thanks everyone for your help with this problem.
NSOperation doesn't spawn any threads on its own. If you add one to an NSOperationQueue, the queue will spawn a thread and run your operation in it.
NSOperations by themselves are just neat little objects for partitioning work. They don't know anything about threads by themselves. E.g. you could use an NSOperation subclass by itself to spawn a process to do some work.
I think NSOperation is nifty, but that's just my opinion. Bill _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]