Trying to remove default dock menu items.
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