> On Jul 25, 2018, at 12:45 PM, Casey McDermott <supp...@turtlesoft.com> 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
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com