Re: NSComboBox in the tab ring
Re: NSComboBox in the tab ring
- Subject: Re: NSComboBox in the tab ring
- From: Fritz Anderson <email@hidden>
- Date: Wed, 29 Oct 2014 11:04:14 -0500
On 18 Oct 2014, at 11:14 PM, Luther Baker <email@hidden> wrote:
>
> Is it possible to keep an NSComboBox in the tabbing ring if I set its
> "Behavior" to "Selectable". Tabbing reaches the control if the textfield is
> editable but I don't want to allow the user to type randomly into the text
> field ... but unfortunately, once I remove its editability, the tabbing
> cycle skips the control.
An NSComboBox is an instance of a subclass of NSTextField. Use as a free-form text-entry control, _assisted by_ suggested completions, is the essence of the class. Text fields are either editable or not. One might wish NSComboBox were a different object, but it isn’t.
The text field delegate methods let you constrain the user’s input on-the-fly, and there are additional delegate methods and notifications for combo boxes; see if you can get what you want that way. Maybe CocoaPods has something, it’s a commonly-desired feature.
— F
_______________________________________________
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