Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use and where to use NSOperation and NSOperationQueue> [duplicate]

Possible Duplicate:
NSOperation on the iPhone

I am new to Objective-c Iphone, and I came to know about NSOperation and NSOperationQueue. Where to use this and how can I use this? Can anyone give me explanations with any small example program?

Thanks in advance...

like image 549
Shanmugaraja G Avatar asked Dec 21 '22 15:12

Shanmugaraja G


2 Answers

This will surely help you - http://www.icodeblog.com/2010/03/04/iphone-coding-turbo-charging-your-apps-with-nsoperation/

like image 189
Saurabh Avatar answered Apr 28 '23 10:04

Saurabh


A quick Google turned up:

  • The Concurrency Programming Guide, dealing with operations and threading
  • The NSOperationQueue class reference
  • The (aptly named) NSOperationSample example project, straight from Apple, and
  • A descriptive post from the excellent blog "Cocoa Is My Girlfriend," with a small, well-explained example, complete with code snippets.
like image 22
Tim Avatar answered Apr 28 '23 11:04

Tim