Which dock menuitem did trigger the event?
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.