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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to