Mac OS X Reference Library Apple Developer
Search

PhotoSearch

Last Revision:
Version 1.5, 2008-03-05
Removed pre-Leopard workarounds for highlighting cells. Also replaced deprecated -selectRows:byExtendingSelection: and -columnsInRect: with their modern NSIndexSet replacements.
(Full Revision History)
Build Requirements:
Xcode 3.0
Runtime Requirements:
Mac OS X 10.5

This sample application uses Spotlight to perform a search for images on your computer. The NSPredicateEditor (introduced in Mac OS X 10.5 Leopard) is used to create a custom search query. The results are displayed in a custom NSTextFieldCell subclass that automatically adds tracking areas to perform automatic rollover highlighting effects inside the cells. A custom DateCell class is implemented that demonstrates how to properly truncate dates based on the cell size. The NSPathControl (introduced in Leopard) is used to display selected paths. Custom views inside a menu are shown with sample code. Finally, threadsafe background thumbnail image processing is demonstrated by the data model.




Last updated: 2008-03-05

Did this document help you? Yes It's good, but... Not helpful...