• 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
Which dock menuitem did trigger the event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Which dock menuitem did trigger the event?


  • Subject: Which dock menuitem did trigger the event?
  • From: Allan Odgaard <email@hidden>
  • Date: Sun, 7 Jul 2002 13:18:15 +0200

Hi there,

I have a set of dock menuitems that trigger the same action in my app's delegate, I've set the tag for each of the menuitems to be able to tell them apart, but how do I obtain this tag from within my delegate?

According to the documentation the dock invokes the following: [NSApp sendAction:selector to:target from:nil]. So all menuitems are handled identically (since selector & target is the same, and sender is nil).

Any ideas?
_______________________________________________
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:
    • Re: Which dock menuitem did trigger the event?
      • From: Nicholas Riley <email@hidden>
  • Prev by Date: When is my delegate released?
  • Next by Date: Re: Which dock menuitem did trigger the event?
  • Previous by thread: Re: When is my delegate released?
  • Next by thread: Re: Which dock menuitem did trigger the event?
  • Index(es):
    • Date
    • Thread