• 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 allows no selection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBox allows no selection?


  • Subject: NSComboBox allows no selection?
  • From: Carrie Brezine <email@hidden>
  • Date: Wed, 12 Feb 2003 16:35:37 -0500

Hello,

I have a comboBox which uses a datasource. I've implemented

- (unsigned int)comboBox:(NSComboBox *)aComboBox
indexOfItemWithStringValue:(NSString *)str

in my datasource. When I type something in the comboBox text field, if
it matches an item in the list, that item is selected, as I hoped it
would be. However, if I type something that is *not* in the list, the
previously selected item remains selected, even though the above method
returns NSNotFound. Is this expected behaviour? Once an item is
selected from a comboBox list, is there any way to make no items
selected? Been searching docs and archives, so far no luck. thanks
for your help.

Carrie
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Subclassing a Cocoa class while in a Java package
  • Next by Date: Re: seeking advice on NSComboBox and view display problems
  • Previous by thread: +class
  • Next by thread: Passing on events and the built-in functions
  • Index(es):
    • Date
    • Thread