NSComboBox Pop-Up like behavior for custom NSWindow
NSComboBox Pop-Up like behavior for custom NSWindow
- Subject: NSComboBox Pop-Up like behavior for custom NSWindow
- From: Gert Andreas <email@hidden>
- Date: Tue, 13 May 2008 10:12:18 +0200
Hi,
I'm currently working on a NSSearchField with an "attached"
borderless NSWindow (using NSBorderlessWIndowMask and
NSFloatingWindowLevel) that has a NSTableView to display the results
from the search field. All works fine so far except hiding the results
window when clicking e.a. on the main application window. I'd like to
have the same behavior as with a NSCcomboBox and it's popup, that
disappears when clicking outside to popup area.
The SearchField itself got a custom FieldEditor that forwards the up,
down and return key events to the tableview in the bordless window.
So that window isn't the key window. Because the user should be able
to continue typing into the search field as well as selecting the
results using the arrow keys and return.
Any suggestions or hints are higly appreciated!
Kind regards,
Gert
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden