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 <45rpmli...@googlemail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to