• 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
Re: NSComboBoxCell example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBoxCell example


  • Subject: Re: NSComboBoxCell example
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 30 May 2005 21:04:28 -0500

On 30 May 2005, at 3:56 PM, Theodore H. Smith wrote:

Don't tell me that NSComboBoxCell is being treated as a plain old string? If that is the case, then the I need to modify the behaviour. This is because for some (but not all) rows, I want the combobox to not allow arbitrary text to be entered, only allowing the values that are in the combo's list.

Well, if we don't tell you that, then we won't be telling you anything.

The combo box is not a menu. Its superclass is NSTextField. It is a string-entry field, with some quick-entry elements added for convenience. The list associated with the combo box does not restrict the value of the field.

If you want to restrict the values, do your filtering at tableView:setObjectValue:forTableColumn:row:. Possibly you could write an NSFormatter that enforces the legal values.

    -- F

_______________________________________________
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


References: 
 >NSComboBoxCell example (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: [ANN] RBSplitView 1.1.3
  • Next by Date: Limit data rate with an NSURLConnection
  • Previous by thread: NSComboBoxCell example
  • Next by thread: Re: NSComboBoxCell example
  • Index(es):
    • Date
    • Thread