NSPersistentDocument and initWithType:Error
NSPersistentDocument and initWithType:Error
- Subject: NSPersistentDocument and initWithType:Error
- From: Peter Ferrett <email@hidden>
- Date: Sat, 7 Mar 2009 15:14:01 +0000
The NSDocument reference manual states: 'If you need to perform
initializations that must be done when creating new documents but
should not be done when opening existing documents, override
initWithType:error:.'
In my NSPersistentDocument subclass, I have overridden the
initWithType:error: method as specified. However, the initializer
does indeeed get called when opening existing xml documents. I have
no other init: methods subclass and no NSDocumentController methods
subclassed.
Have I missed out on something obvious or is this not applicable to
NSPersistenDocument?
PeterF
_______________________________________________
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