nssearchfield

How to implement key equivalent for NSSearchField

I have a Cocoa application I am building which contains an NSSearchField control. I want to enable a keyboard shortcut / key equivalent so when the uses presses COMMAND-OPTION-F, the search field gets focus. However, after much searching, it is not clear to me what the best way to implement this is. There is not an option to set this fo...

How to show the recent search history menu while entering the text intp NSSEarchField?

Hi All, I am developing an application where the requirement is, while entering the search string into the NSSearchField I should have to show the, recent search history menu(just like safari).Is it possible? ...

[cocoa] NSSearchField not working as expected

Hi, I'm trying to follow Marcus Zarra in his book 'Core Data'. In the book, he makes a small sample application, but it doesn't give much help when things don't work out... He starts out by visually designing three entities, and then adding array controllers for each entity to the main nib. Second, he adds a tableview and some other vi...

How can I show NSSearchField menu programmatically?

I want to implement an NSSearchField showing search results similar to Safari's, but I cannot figure out how to show the menu programmatically. Any pointers would be greatly appreciated. Update: I tried doing this programmatically by calling @-performClick:@ on the @NSButtonCell@ object that represents the search button inside the searc...

How to prevent NSSearchField from overwriting entered strings using the first autocompletion list entry?

I am looking for a way to create an nssearchfield that behaves as follows: user types in text based on matches an autocompletion drop-down appears the text in the search field does not autocomplete to the first item in the list The point is, my string matching searches for any substring and autocompletion in the text field woul...