Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: controls in menu



I don't think that will answer Alan's question.

Alan: I think what you're seeing in the case of such "controls in menus" is actually a deception on the part of the NSStatusItem and/or MenuExtra (Apple's private SPI for items such as the volume menu item). The displayed UI is not a menu at all, simply a small window designed look like one.

So to design your own such menu, you'd have to basically invent a window that looks right and then display it at the appropriate time.

If drastic customization of a menu being displayed in the ordinary menu bar is required, you can get quite a few special effects as a Carbon application, but I don't think you can manage this from a Cocoa application without a great deal of hacking.

Daniel

On Feb 28, 2006, at 11:26 PM, Ryan Britton wrote:

http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSStatusItem.html

On Feb 28, 2006, at 6:52 PM, Alan Smith wrote:

One quick simple question: how do I make a menu like the volume one in the
menu bar. I need to place a control in a menu. Any ideas?


Thanks everyone, Alan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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:
http://lists.apple.com/mailman/options/cocoa-dev/jalkut%40red- sweater.com


This email sent to 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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >controls in menu (From: "Alan Smith" <email@hidden>)
 >Re: controls in menu (From: Ryan Britton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.