• 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
Application Dock Menu little issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application Dock Menu little issue


  • Subject: Application Dock Menu little issue
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 14 May 2002 14:15:20 +0200

I remembered seeing a post on this topic but was not able to find it and an answer to it in the archive, so please accept my forthcoming apologies if in fact it was easy to find them.

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)

Additional question: why is it not : [NSApp sendAction: selector to:target from: sender]?
_______________________________________________
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: Application Dock Menu little issue
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: why use NSURLs for file paths?
  • Next by Date: Re: Application Dock Menu little issue
  • Previous by thread: Re: why use NSURLs for file paths?
  • Next by thread: Re: Application Dock Menu little issue
  • Index(es):
    • Date
    • Thread