Re: Application Dock Menu little issue
Re: Application Dock Menu little issue
- Subject: Re: Application Dock Menu little issue
- From: Jim Correia <email@hidden>
- Date: Tue, 14 May 2002 08:50:16 -0400
On Tuesday, May 14, 2002, at 08:15 AM, Stiphane Sudre wrote:
From the Cocoa Documentation, it seems you can't get the actual
sender of a message when you select a Application Dock Menu item:
"The target and action for each menu item is passed to the dock.
On selection of the menu item the dock messages your application,
which should invoke [NSApp sendAction: selector to:target from:
nil]"
So are we supposed to use one specific method for every NSMenuItem
in the Application Dock Menu or is there a workaround to be able
to get the NSMenuItem sending the message? (I'd like to use the
tag info)
It is a bug that Apple intends to fix for the next major release of
Mac OS X. There is sample code which shows how to work around the
issue.
<
http://developer.apple.com/samplecode/Sample_Code/Cocoa/DeskPictAppDockMenu.
htm>
Jim
_______________________________________________
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.