NSOperationSample

Last Revision:
Version 1.3, 2012-03-27
Upgraded to Xcode 4.3 and Mac OS X 10.7, replaced one deprecated API use, adopted NSURL APIs, now uses ARC (Objective-C Automatic Reference Counting).
(Full Revision History)
Build Requirements:
Xcode 4.2 - Mac OS X 10.7
Runtime Requirements:
Mac OS X 10.6.x or later

"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.