Version: 1.1

Posted: 2007-06-11

Build Requirements: Xcode 3.0

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“NSOperationSample.zip”, 70.0K)
Download Sample (“NSOperationSample.dmg”, 122.0K)



Description

"NSOperationSample" is a Cocoa application that demonstrates how to use NSOperation and NSOperationQueue classes. It encapsulates specific tasks like searching the file system for certain image files. One NSOperation is created for recursively searching a given directory, other NSOperation instances are then created for each image file found. It uses NSOperationQueue to manage these operations so users can stop the search and give the primary search operation more time to execute.

Document Revision History

Date Notes
2007-06-11Updated to use NSFileManager to iterate through directories for image files.
2007-05-31Demonstrates how to use the NSOperation and NSOperationQueue classes.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.