Re: popupbutton cell in an NSTableView displaying No Value
Re: popupbutton cell in an NSTableView displaying No Value
- Subject: Re: popupbutton cell in an NSTableView displaying No Value
- From: Keary Suska <email@hidden>
- Date: Thu, 13 Sep 2007 08:19:17 -0600
- Thread-topic: popupbutton cell in an NSTableView displaying No Value
on 9/12/07 8:46 PM, email@hidden purportedly said:
> I have an ISTModelList which have the values populated.
> This ISTModelList is associated with the pop up using bindings.
> If i display the values in this ISTModelList using NSLog, the values are
> displayed properly ( There is no "No Value" being displayed in the NSLog).
> But in the pop up, i can see a "No Value" being shown.
> What might be the issue?
It usually means the binding for the current selected item (such as
"selectedObject, selectedValue, etc") is either: 1) returning a nil value or
2) returning an object that doesn't correspond to the bound controller's
content. In other words, for "selectedObject" for instance, the object
returned by the binding must exist in the bound content, and not just
equivalently but the *exact same object*.
In the case of #1, a nil value may be acceptable, in which case you need to
supply a nil value placeholder so it shows something more informative.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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