• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSPersistentDocument and initWithType:Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSPersistentDocument and initWithType:Error (solved)
      • From: Peter Ferrett <email@hidden>
  • Prev by Date: Why does my heartbeat thread crash?
  • Next by Date: Re: Determine colorlist/-name after NSColorPanel
  • Previous by thread: Re: Why does my heartbeat thread crash?
  • Next by thread: Re: NSPersistentDocument and initWithType:Error (solved)
  • Index(es):
    • Date
    • Thread