• 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: NSSlider inside an NSMenu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSlider inside an NSMenu


  • Subject: Re: NSSlider inside an NSMenu
  • From: Nicholas Riley <email@hidden>
  • Date: Mon, 28 Jul 2003 12:15:56 -0500
  • Mail-followup-to: Jérome Foucher <email@hidden>, Steve Gehrman <email@hidden>, email@hidden

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.

References: 
 >NSSlider inside an NSMenu (From: Steve Gehrman <email@hidden>)
 >Re: NSSlider inside an NSMenu (From: Jérome Foucher <email@hidden>)

  • Prev by Date: Re: MP3 info?
  • Next by Date: Re: How to detect selection change in NSBrowser ?
  • Previous by thread: Re: NSSlider inside an NSMenu
  • Next by thread: ANNOUNCE: UI Tracking sample code posted for free
  • Index(es):
    • Date
    • Thread