Re: NSDocument "save as" bug
Re: NSDocument "save as" bug
- Subject: Re: NSDocument "save as" bug
- From: Half Activist <email@hidden>
- Date: Mon, 1 Feb 2010 18:16:42 +0100
I'm not making any assumption on the number of documents that might exist at one time.
Even if i have 10 documents opened, the one that i do a "save as" on has its _instance method_ awakeFromNib called a second time:
The callstack shows that my document's awakeFromNib is being called during the save panel setup process.
#1 0x00007fff82927959 in -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] ()
#2 0x00007fff82925b49 in loadNib ()
#3 0x00007fff8292525c in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] ()
#4 0x00007fff82c93797 in -[NSDocument _savePanelAccessoryViewForWritableTypes:defaultType:] ()
#5 0x00007fff82c91192 in -[NSDocument _preparedSavePanelForOperation:] ()
#6 0x00007fff82c9022b in -[NSDocument _runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:] ()
Unless specifying several editable document types grants your awakeFromNib an undocumented chance to get called a second time.
Furthermore, how do you explain that this works on Leopard but fails on Snow Leopard?_______________________________________________
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