Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBox Pop-Up like behavior for custom NSWindow



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.