SearchField

Last Revision:
Version 2.1, 2015-06-25
Upgraded for OS X 10.10 SDK, base SDK set to "Latest OS X", now uses ARC (Automatic Reference Counting), fixed leak warning.
(Full Revision History)
Build Requirements:
OS X 10.10 SDK
Runtime Requirements:
OS X 10.8 or later

"SearchField" is a Cocoa application that demonstrates how to use a special text control called "NSSearchField". This is the control that is used in the popular Apple applications like Safari, iTunes, Mail, etc. This sample explains the details involved in overriding the list of key words to search as well as customizing the recent searches menu built into the control's cell.