Re: NSToolbar settings not saved
Re: NSToolbar settings not saved
- Subject: Re: NSToolbar settings not saved
- From: Pax <email@hidden>
- Date: Fri, 09 Aug 2013 17:04:27 +0100
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 <email@hidden> 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 (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