• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Icons in popups with controller layer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Sliding an image
  • Next by Date: Re: window resizing events
  • Previous by thread: Re: Sliding an image
  • Next by thread: Re: window resizing events
  • Index(es):
    • Date
    • Thread