Re: Which Dock item chosen?
Re: Which Dock item chosen?
- Subject: Re: Which Dock item chosen?
- From: Eric Peyton <email@hidden>
- Date: Sat, 5 Jan 2002 07:39:29 -0600
On Saturday, January 5, 2002, at 04:37 AM, Marcus wrote:
OK, I have sorted out my previous issue with the dynamic dock menu. Now
I have another issue!
I have created a menu with several items in it - each with the same
target function, the menu is then displayed as a dock menu.
When the user releases on the dock menu - my function is called - but I
cannot determine which menu option they released on. All I need is the
menu item title! I gather from the list that this may be a problem -
is there a work around?
No, not an easy one at this time. This is a known bug and Apple has
said that they will have it fixed.
The solution is to assign each dynamically created menu item it's own
action method (either dynamically created or statically create a bunch
in your program), then you known which item was called.
Eric
Marcus
-- ========================================================
"Always ask the question, never assume the answer."
Marcus Radich 1999
========================================================
_______________________________________________
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.