objective c - How do you get search capability similar to Spotlight or iTunes? -
I have an NSTableView that contains some columns populated with data. How can I set a search bar which is a Can filter rows based on the contents of a particular column? I am searching for things that are done in the search bar in the searcher or in the search bar in iTunes that can filter the song by metadata.
Can your data source be managed by NSArrayController?
There are 2 approaches to the first (pre-tiger) technique, the NSARA is for the sub-category, the Order Overriding Objects is committed to NSArrayController's filter for the prediction of the second (Post-Tiger) NSSearchField. Either in any case, bind your visual properties by tapping the arrangedObject key of the controller (for example "Names" NSTableColumn in the administrator's arrangedObjects.name key and Bind the contents of NSTableView to arrangedObjects ). You may want to read.
Comments
Post a Comment