Re: Enabling Toolbar Buttons...
Re: Enabling Toolbar Buttons...
- Subject: Re: Enabling Toolbar Buttons...
- From: Esteban Uribe <email@hidden>
- Date: Mon, 14 Apr 2003 10:18:31 -0700
Hi,
On Monday, April 14, 2003, at 08:46AM, Oliver Cameron <email@hidden> wrote:
>
Now, in there is NSToolbarPrintItemIdentifier which I do not need, so I
>
replaced that with my NewDocToolbarItemIdentifier, yet it is not
>
enabled when I build, the code for the New Doc item is:
>
>
} else if ([itemIdent isEqual: NewDocToolbarItemIdentifier]) {
>
>
[toolbarItem setLabel: @"New"];
>
[toolbarItem setPaletteLabel: @"New"];
>
>
[toolbarItem setToolTip: @"Make New Document"];
>
[toolbarItem setImage: [NSImage imageNamed: @"NewDocumentItemImage"]];
>
>
[toolbarItem setTarget: self];
>
[toolbarItem setAction: @selector(newDocument:)];
>
>
I don't see what could be wrong? Thanks!
Make sure this item is included in the array returned by
- (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar*)toolbar and
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar delegate methods to
NSToolbar.
-Esteban
_______________________________________________
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.