• 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: Which Dock item chosen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Lazy binding
      • From: Rosyna <email@hidden>
References: 
 >Which Dock item chosen? (From: Marcus <email@hidden>)

  • Prev by Date: Re: Key event handling theory
  • Next by Date: Lazy binding
  • Previous by thread: Which Dock item chosen?
  • Next by thread: Lazy binding
  • Index(es):
    • Date
    • Thread