Re: NSSlider inside an NSMenu
Re: NSSlider inside an NSMenu
On Mon, Jul 28, 2003 at 10:52:34AM +0200, Jirome Foucher wrote:
>
On lundi, juil 28, 2003, at 05:45 Europe/Paris, Steve Gehrman wrote:
>
>
>Anyone create a menu with slider like the volume control in the menu
>
>bar?
>
>
Stop me if I'm wrong, but I belive it's impossible to achieve in 10.2
>
You need Panther with the new menu manager, that will allow such stuff
>
to be done using Carbon APIs (and only Carbon APIs).
Yes, HIView-based menus are only available in Panther, but you can
write a MDEF which will work on 10.2 as well.
The volume menu is a bad example. Volume.menu is not a 'real' menu
extra; it's just a placeholder containing no code. The volume menu is
not really a menu; it's implemented as a window containing a NSSlider
subclass, by SystemUIServer.
So, if you can do so, just make a window with a NSSlider inside it
which looks and behaves like a menu, instead of a menu. If you really
must implement it as a menu, then you'll have to write it as a MDEF if
you want 10.2 compatibility.
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.