Mostly in code.  I've added a toolbar in IB, and hooked it up to an NSToolBar 
object in my code - and then I use that NSToolBar object to set up my toolbar.

I am doing some unusual things (mainly to do with the validation of items, and 
subtle changes to the icon to give the user additional information about the 
current state of the document), but I can't see how any of it would affect 
saving.

Looking at my application preferences, it seems that the toolbar settings are 
being saved correctly when I update them.  The issue, therefore, is purely one 
of loading them when a new NSDocument is created.

On 9 Aug 2013, at 14:11, Graham Cox <graham....@bigpond.com> wrote:

> 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
> 


_______________________________________________

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