I have document based application. It worked fine until I decided to change data model. Now I get error when click on Save or Save As
*** Assertion failure in -[NSSavePanel setNameFieldStringValue:], /SourceCache/AppKit/AppKit-1127.1/Nav.subproj/NSSavePanel.m:1622
Invalid parameter not satisfying: value != nil
The strange thing is that error occurs not in my code – I have override method prepareSavePanel: in my NSPersistentDocument subclass but program does not reach this point. Error occurs somewhere between writableTypesForSaveOperation: and prepareSavePanel: (according to saving steps scheme)
Have you got any ideas?
I found the problem.
In my NSPersistentDocument subclass I have override
displayNamemethod and in some cases it returnednilvalue.After fixing it all works fine.