Re: NSComboBox
Re: NSComboBox
- Subject: Re: NSComboBox
- From: John Harte <email@hidden>
- Date: Wed, 25 Jul 2018 13:41:44 -0500
> On Jul 25, 2018, at 12:45 PM, Casey McDermott <email@hidden> wrote:
>
> Apple's instructions for combo boxes say: "Note that while you can construct
> your NSComboBox
> so that users are restricted to only selecting items from the combo box’s
> pop-up list,
> this isn’t the combo box’s normal behavior."
>
> For our use, we definitely want to restrict NSComboBox to only accept items
> in the list.
> For accounting, we can't create new accounts on the fly from just a name,
> especially if users make a typo.
> The goal is to auto-fill an account from what they type, and ignore typing if
> not a match.
>
> We searched sample projects, the archives here, and StackOverflow. No
> instructions on how to
> restrict it. Has anyone here ever done it?
>
I switched Behavior for Text Field in the Attributes Inspector from Editable to
Selectable and it works, I can select from the list but I can’t type in text.
Hope that helps,
John
Attachment:
signature.asc
Description: Message signed with OpenPGP
_______________________________________________
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
References: | |
| >NSComboBox (From: Casey McDermott <email@hidden>) |