NSSavePanel crash!
NSSavePanel crash!
- Subject: NSSavePanel crash!
- From: Half Activist <email@hidden>
- Date: Fri, 11 Dec 2009 17:49:36 +0100
Hello All,
I'm developping a document-based application that up to today could read two document types and write one of the two.
So one type was set as an editor the other one as viewer in the Info.plist.
All the save/open panel stuff is the plain AppKit behavior and I haven't overridden a tiny ounce of it all in my NSDocument subclass.
Today I added a new editor document type in the info.plist. Gave it a name, an icon, an extension, etc and set the app as an editor of this type.
Now I open a document, choose File > Save As, the save panel appears and bang, crash!
So i traced it back and my own document's awakeFromNib is being called by the savepanel opening process!
That's _really_ weird.
If anyone already experienced this, did I do something wrong (clearly I don't think so because I haven't even changed the source code, except for one test)?
Yes the weirdest thing is that my code hasn't changed!
Regards._______________________________________________
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