• 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 -- How do I limit user typing to what is in the list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBox -- How do I limit user typing to what is in the list


  • Subject: NSComboBox -- How do I limit user typing to what is in the list
  • From: Scott Mitchell <email@hidden>
  • Date: Thu, 8 Jun 2006 14:28:24 -0600

I have been looking on the Cocoa List, I have not found an answer to this. I need to limit the user typed text to what is in the list already. So for example if I have list of say months

January
February
March
April
May
June
July
August
September
October
November
December

So if the user types "J" it selects January, but then if the user types "Ju" it selects June. That all works fine by turning on the [combobox setComplets:YES]. But if the user
types say "Q" nothing gets put in the edit field. I don't want the user to be able to type anything that is not in the list.


Any help would be appreciated.

Thanks,
Scott Mitchell
Senior Macintosh Software Engineer
Excelsior Software
http://www.excelsiorsoftware.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSComboBox -- How do I limit user typing to what is in the list
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Re: my class initialize is being called multiple times
  • Next by Date: Re: NSComboBox -- How do I limit user typing to what is in the list
  • Previous by thread: Re: Re: my class initialize is being called multiple times
  • Next by thread: Re: NSComboBox -- How do I limit user typing to what is in the list
  • Index(es):
    • Date
    • Thread