FROM : Eric Peyton
DATE : Sat Jan 05 14:39:29 2002
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_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
DATE : Sat Jan 05 14:39:29 2002
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_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Marcus | Jan 5, 11:37 | |
| Eric Peyton | Jan 5, 14:39 |






Cocoa mail archive

