Re: DockMenu
Re: DockMenu
- Subject: Re: DockMenu
- From: Eric Peyton <email@hidden>
- Date: Thu, 21 Mar 2002 08:37:21 -0600
You will need to find another way to get the feature that you want. One
way people have worked around this is to have each menu item have it's
own dynamically generated selector/message (or define a large list of
them).
Yes, it is a pain. Yes, it is a known problem. And yes, I do believe
it is planned to be changed.
Eric
On Thursday, March 21, 2002, at 07:21 AM, Thilo Ettelt wrote:
Hi folks!
I have a problem with a dockMenu. I add the items to a menu in the nib
file in the awakeFromNib. So far so good, it works perfectly (it is
shown correctly in the dock), but I have a problem with the action. The
selector clicker works, but its sender is NSApplication. And that
doesn't help me when I want to have the clicked menuitem's title! :(
So what can I do?
- Thilo
--
- (void)awakeFromNib
{
[dockMenu addItemWithTitle:@"aTitleHere"
action:@selector(clicker:)
keyEquivalent:@""];
}
- (void)clicker:(id)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.
_______________________________________________
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.
References: | |
| >DockMenu (From: Thilo Ettelt <email@hidden>) |