Re: Menus with ALT a la Finder
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.