NSToolbar settings not saved

2013-08-09 Thread Pax
Okay, I think that this might be a weird one. I've read the documentation, and I've implemented a toolbar for my document based application. For the most part, it works perfectly but its settings don't seem to be getting saved. For example: 1. If I have x many windows open and I add an item

Re: NSToolbar settings not saved

2013-08-09 Thread Graham Cox
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

Re: NSToolbar settings not saved

2013-08-09 Thread Michael Starke
I'm using a similar setup, that is I allocate and place the toolbar in code, create all toolbar items with the delegates. I'm supporting the same delegates as you do (defaults, allowed) and do not get the described behavior. 1. Same here 2. New window has custom toolbar as I did modify it 3.

Re: NSToolbar settings not saved

2013-08-09 Thread Michael Starke
Correction: I'm not using - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag but other than that, same usage as you. On 09.08.2013, at 13:22, Pax 45rpmli...@googlemail.com wrote: Okay, I think that this might

Re: NSToolbar settings not saved

2013-08-09 Thread Pax
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