• 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: Enabling Toolbar Buttons...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Drag & drop
  • Next by Date: Re: BSD sockets and Cocoa
  • Previous by thread: Enabling Toolbar Buttons...
  • Next by thread: Re: Move Camera in OpenGL ? (David Remahl)
  • Index(es):
    • Date
    • Thread