• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSComboBox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBox


  • Subject: NSComboBox
  • From: Casey McDermott <email@hidden>
  • Date: Wed, 25 Jul 2018 17:45:44 +0000 (UTC)

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?

BTW our current Carbon app does something similar with a text field and popup.
The design
came from from an article in Dev Connect by Bruce Tognazzini back in the late
80s.
He called it a "disambiguating field".

I'm surprised NSComboBox doesn't just have a Boolean to do what we want.

Thanks,

Casey McDermott

Turtle Creek Software
http://www.turtlesoft.com
_______________________________________________

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

  • Follow-Ups:
    • Re: NSComboBox
      • From: Jens Alfke <email@hidden>
    • Re: NSComboBox
      • From: John Harte <email@hidden>
  • Prev by Date: Is sandboxing doing some weird caching of alias files?
  • Next by Date: Re: NSComboBox
  • Previous by thread: Is sandboxing doing some weird caching of alias files?
  • Next by thread: Re: NSComboBox
  • Index(es):
    • Date
    • Thread