Re: NSToolbar settings not saved
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