• 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: DockMenu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Does NSSound not work in a Unix tool?
  • Next by Date: Re: Cocoa's Popularity
  • Previous by thread: DockMenu
  • Next by thread: Re: Spreadsheet Widget
  • Index(es):
    • Date
    • Thread