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 (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com