Re: Icons in popups with controller layer
Re: Icons in popups with controller layer
- Subject: Re: Icons in popups with controller layer
- From: Jon Hull <email@hidden>
- Date: Sat, 1 May 2004 00:49:22 -0700
Does anyone know how to get a popup to display icons using the
controller layer?
I have a table with a list of classes, each class has a name and an
icon. This is easily displayed in the table using the controller
bindings. However, I would like the user to be able to click on an
icon and get a popup of alternative icons. I can not figure out how
to get a popup to display icons using the controller bindings. I have
even tried writing converters changing the icons to menu items... no
luck!
Please Help!
O.K. I ended up subclassing NSPopupButtonCell to add @"menu" via
exposeBinding:, and created a quick IB Palette. I also created a
transformer that can turn an array (images or strings or both) into a
menu. There is probably a much easier way... but this way works fine.
(and the bindings show up in IB).
Just thought I would let you know in case someone had a similar problem.
Thanks,
Jon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.