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

Re: Dock menus


  • Subject: Re: Dock menus
  • From: April Gendill <email@hidden>
  • Date: Sun, 3 Aug 2003 21:21:36 -0700

O jeez Now I understand what you mean.
AH! I made that connection in IB but that must have been one of the ones that was lost (and I forgot to reconnect) when IB unexpectantly quit earlier today.


On Sunday, August 3, 2003, at 09:12 PM, Andre Bocchini wrote:

Is the class that has your applicationDockMenu method you app delegate? If not, trying making it so. That should clear up the problem.

-- Andre


On Sunday, August 3, 2003, at 09:36 PM, April Gendill wrote:

appDockMenu was declared in the header as an NSMenu.
there is no nib file for the dock since most of the examples do not
have a nib
this program is small enough not to need a seperate controller for this.
there is no docmenu in the mainmenu nib either because again most
examples don't have them
so why, even if I do a direct cut and paste, does this not work?
is applicationDockMenu suppose to be called from the awakefromnib or
the init????
what is wrong with my code that even working code will no longer work
in my app?

- (NSMenu *)applicationDockMenu:(NSApplication *)sender
{
NSMenuItem *newItem;
appDockMenu = [[[NSMenu alloc] initWithTitle:@"DockMenu"]
autorelease];

newItem=[[[NSMenuItem alloc]initWithTitle:@"Test"
action:@selector(executeMenu:)
keyEquivalent:@""]autorelease];

[newItem setTarget:self]; //set to self because
executemenu is a valid ibaction in the main controller.
[appDockMenu addItem:newItem];

return appDockMenu;
}
_______________________________________________
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.
_______________________________________________
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: 
 >Re: Dock menus (From: Andre Bocchini <email@hidden>)

  • Prev by Date: Re: launching applications within/by cocoa/carbon programs
  • Next by Date: Re: launching applications within/by cocoa/carbon programs
  • Previous by thread: Re: Dock menus
  • Next by thread: launching applications within/by cocoa/carbon programs
  • Index(es):
    • Date
    • Thread