Popup buttons, icons, and bindings
Popup buttons, icons, and bindings
- Subject: Popup buttons, icons, and bindings
- From: Gwynne <email@hidden>
- Date: Thu, 20 Jan 2005 11:52:51 -0500
This is probably a FAQ, and if it is I apologize, but as usual a search
has turned up nothing useful.
I have a popup menu whose content is bound to an NSArrayController.
Nothing unusual there, I'd imagine. My question is this: How can I
modify the array in such a manner that NSPopUpButton will set the icon
of each menu item as well as the title? Or, if that's not natively
supported, what's the simplest way to subclass NSPopUpButton to do it?
And on a side note that isn't relevant, why must I create an
NSArrayController and bind it to my NSObjectController, instead of
binding the content binding directly to the array key on the object
controller? The array isn't mutable and all, so the services of a full
controller aren't needed. Oh well.
-- Gwynne, key to the Code
Email: email@hidden
Website: http://musicimage.plasticchicken.com/
"This whole world is an asylum for the incurable."
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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