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

DockMenu


  • Subject: DockMenu
  • From: Thilo Ettelt <email@hidden>
  • Date: Thu, 21 Mar 2002 14:21:15 +0100

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.

  • Follow-Ups:
    • Re: DockMenu
      • From: Eric Peyton <email@hidden>
  • Prev by Date: Binary Tree
  • Next by Date: Re: Spreadsheet Widget
  • Previous by thread: Binary Tree
  • Next by thread: Re: DockMenu
  • Index(es):
    • Date
    • Thread