[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSArrayController + pull-down button
On Mar 3, 2004, at 5:34 PM, Phil Ulrich wrote:
> I have an NSPopUpButton that I have set to be a pull-down button.
> What I'd like to do is hook it up via the normal Cocoa Bindings to an
> NSArrayController in my project to provide its content objects.
> (Currently it's established programmatically.) Here's my problem:
> whenever I launch the app, the first item in the array controller's
> objects overrides the title (and, actually, the icon) that I have set
> in Interface Builder for the pulldown.
> Is there any way to tell one of the objects, either the pull-down or
> the controller, that I only want items 1 through n in the pull-down
> affected - not 0 through n? Should I subclass one of the objects?
>
In the Bindings Inspector, check "Inserts Null Placeholder", and set
the Null Placeholder to whatever you want the title to be.
mmalc