• 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
Trying to remove default dock menu items.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to remove default dock menu items.


  • Subject: Trying to remove default dock menu items.
  • From: email@hidden
  • Date: Wed, 20 Sep 2006 19:48:38 +0000

Hi Everyone,

I'm trying to figure out how to remove the default dock menu items
that are automatically added to the dock when creating a new cocoa
application project.

I've gone through two ways of affecting the dock menu.

1. Using the application's delegate with the code below I end up with the default list of dock menu items.

- (NSMenu *)applicationDockMenu:(NSApplication *)sender {
NSLog(@"DOCK");
return [[NSMenu alloc] init];
}

2. If I use the MainMenu.nib and connect a dummy menu to the FileOwner instance, I end up with the default items appended below the items in the dummy menu.

In either case, the default dock menu items like Quit, Open at Login, Keep in Dock always appear. Any menus I define end up being added before the default ones.

Any assistance would be greatly appreciated.

- Paul
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trying to remove default dock menu items.
      • From: "Corey O'Connor" <email@hidden>
  • Prev by Date: Re: NSViewAnimation: sliding one view down over another in a tab view
  • Next by Date: Re: Trying to remove default dock menu items.
  • Previous by thread: Re: NSViewAnimation: sliding one view down over another in a tab view
  • Next by thread: Re: Trying to remove default dock menu items.
  • Index(es):
    • Date
    • Thread