I want my NSComboBox to behave like the point size combo in TextEdit:
User places cursor in the combobox textfield,
User presses arrow down - the menu opens
User presses arrow down several times stepping down in the menu.
User presses Enter to select the highlighted point size.
- or user presses Escape to cancel the operation.

In any case I only seem to receive
   comboBoxWillPopUp
   comboBoxSelectionDidChange
   comboBoxSelectionDidChange
   comboBoxSelectionDidChange
   comboBoxWillDismiss

textDidEndEditing is NOT called even though the NSComboBox changes the text in 
case the user presses Enter.

Do I really have to note the current selection in comboBoxSelectionDidChange
and then in comboBoxWillDismiss examine the NSApp.currentEvent
to see if it was a key event that should apply the selection (Enter/Return) or 
cancel (Escape/Tab)
or even a mouse event, the user may click in list to select or click outside 
list to cancel!

I thought the AppKit was my friend and would handle all the details...
/Lars


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to