Re: NSComboBoxCell example
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