• 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: NSToolbar settings not saved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbar settings not saved


  • Subject: Re: NSToolbar settings not saved
  • From: Graham Cox <email@hidden>
  • Date: Fri, 09 Aug 2013 15:11:36 +0200

Are you setting up your toolbar in IB, or in code?

If in IB, none of the methods you list are needed - it will work without them. In fact, you do not need to write any code at all to fully support toolbars unless you're doing something unusual. The documentation goes into a lot of detail that actually only pertains to creating toolbars in code.

--Graham


On 09/08/2013, at 1:22 PM, Pax <email@hidden> wrote:

> My tool bar settings are as follows:
>    [toolbar setAllowsUserCustomization:YES];
>    [toolbar setAutosavesConfiguration:YES];
>    [toolbar setDisplayMode:NSToolbarDisplayModeIconOnly];
>    [toolbar setDelegate:self]; //I suspect that this might not be needed
>
>
> I have implemented the following (as per the documentation):
> - (BOOL) validateToolbarItem: (NSToolbarItem *) toolbarItem
> - (NSToolbarItem *)toolbarItemWithIdentifier:(NSString *)identifier
>                                       label:(NSString *)label
>                                 paleteLabel:(NSString *)paletteLabel
>                                     toolTip:(NSString *)toolTip
>                                      target:(id)target
>                                 itemContent:(id)imageOrView
>                                      action:(SEL)action
>                                        menu:(NSMenu *)menu
> - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag
> - (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar *)toolbar
> - (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar
>
> For any help you can offer, I am most grateful!


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSToolbar settings not saved
      • From: Pax <email@hidden>
References: 
 >NSToolbar settings not saved (From: Pax <email@hidden>)

  • Prev by Date: Re: Can't get NSManagedObject subclass to release objects
  • Next by Date: Re: NSToolbar settings not saved
  • Previous by thread: NSToolbar settings not saved
  • Next by thread: Re: NSToolbar settings not saved
  • Index(es):
    • Date
    • Thread