[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSArrayController + pull-down button
- Subject: NSArrayController + pull-down button
- From: phil at interalia.org (Phil Ulrich)
- Date: Wed Mar 3 20:03:16 2004
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?
Thanks,
Phil Ulrich