hosting NSLevelIndicator in a menu
hosting NSLevelIndicator in a menu
- Subject: hosting NSLevelIndicator in a menu
- From: Matthew Peltzer <email@hidden>
- Date: Thu, 7 Jul 2005 21:11:48 -0600
I am attempting to host a NSLevelIndicator in a menu, with the ability
to set the value of the indicator through the menu.
I've noticed three things while investigating this: 1) iTunes does not
use a NSLevelIndicator, but rather a 6 item sub menu when one
ctrl-clicks on a song entry, 2) Finder appears to use a custom view to
host the label controls (ctrl-click on an item in Finder) and 3) it
appears that at one point there was a NSMenuView and NSMenuItemCell
that would directly allow for this behavior
So, it appears what I am attempting to do is possible, but I can't
find any resources on how to either directly host an NSLevelIndicator
in a menu, or indirectly by hosting a custom view. I'm also concerned
that since NSMenuView and NSMenuItemCell were deprecated that this
behavior is not possible.
Finally, I've come across articles pointing me towards
_NSGetCarbonMenu, but not only can I not get it to return anything
other than 0 (null), but I'd really like to stay away from
undocumented APIs if possible. I would even rather implement a
menu-like view than rely upon something that's unsupported.
Any ideas?
--
-- Matthew Peltzer
-- email@hidden
_______________________________________________
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