Binding a PopUpButton with images in the menu?
Binding a PopUpButton with images in the menu?
- Subject: Binding a PopUpButton with images in the menu?
- From: glenn andreas <email@hidden>
- Date: Fri, 1 Jul 2005 10:16:50 -0500
So you can bind the image of a menu item to something, and you can
bind a popup button's content, contentValues, and contentObjects to
make a popup button contain a dynamic list of strings, but I don't
see anyway to bind a popup button's content to an array of anything
other than strings.
I've tried binding an array of NSMenuItem's (with the images
correctly set), as well as binding an array of attributed strings
(with the images imbedded), but those all result in the items
description appearing in the popup menu (and not the menu item or
attributed string).
I've also experimented with having a separate array controller bound
to my array of items and bound the popup button to that, but again,
no luck.
So is there any way to use bindings to have a popup button's menu
contain text & images? Or am I going to have to do something
manually and explicitly (or use a table view)?
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
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