• 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: Menus with ALT a la Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menus with ALT a la Finder


  • Subject: Re: Menus with ALT a la Finder
  • From: Greg Titus <email@hidden>
  • Date: Wed, 7 May 2003 15:37:51 -0700

On Wednesday, May 7, 2003, at 03:16 PM, Nat! wrote:

I just (really, just a few minutes ago) noticed, that if you keep "alt" pressed while a Finder menu is opened, some of the menu entries will change dynamically. (I suppose old time Macians will groan over this "discovery").

Offhand I see no way to duplicate this in Cocaa, is this right ?

Hi Nat,

No, you have to make some Carbon calls to do this (ChangeMenuItemAttributes() with kMenuItemAttrDynamic). But it is easy enough to do in a Cocoa app. In fact, if you use OmniAppKit then all you need to do is set the tag to 1 on menu items that you'd like to be dynamic, and the framework will set it up for you. See the +_setupDynamicMenus: method in OAApplication for sample code.

Hope this helps,
- Greg
_______________________________________________
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: 
 >Menus with ALT a la Finder (From: Nat! <email@hidden>)

  • Prev by Date: Re: Improving NSStatusItem awareness
  • Next by Date: Re: Menus with ALT a la Finder
  • Previous by thread: Menus with ALT a la Finder
  • Next by thread: Re: Menus with ALT a la Finder
  • Index(es):
    • Date
    • Thread