I have a Search field in my OSX app that shows results in a NSPopover, much like how Spotlight works.
The problem is after the first letter is typed and I show the search results in a popup then my search field loses focus so the user only gets to enter one character.
Launch Popover on first letter in search box....
I can set firstResponder back to the search field (as shown above) after the popup appears but then it highlights the text. Ideally I want to show the popup but not select it at all until the user clicks within it. Just like how spotlight works.
Everything denies first responder in the popup via IB but this has little effect.
Any ideas?
Thanks
Anim
The problem is after the first letter is typed and I show the search results in a popup then my search field loses focus so the user only gets to enter one character.
Launch Popover on first letter in search box....
Code:
[FONT="Courier New"]
[[self searchResultsPopover]
showRelativeToRect:[[notification object] bounds]
ofView:[notification object] preferredEdge:NSMaxYEdge];
[self.searchField becomeFirstResponder];[/FONT]
I can set firstResponder back to the search field (as shown above) after the popup appears but then it highlights the text. Ideally I want to show the popup but not select it at all until the user clicks within it. Just like how spotlight works.
Everything denies first responder in the popup via IB but this has little effect.
Any ideas?
Thanks
Anim