• 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
Is NSDocument read outside init?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is NSDocument read outside init?


  • Subject: Is NSDocument read outside init?
  • From: Allan Odgaard <email@hidden>
  • Date: Thu, 15 Apr 2004 03:55:26 +0200

Since I override initWithContentsOfFile:ofType: in an NSDocument subclass, I was curious to wether or not I need to implement any of the read methods?

It would seem to me that these are only sent from the initializer (and revertToSavedFromFile:ofType:), is this assumption safe?


Likewise, are any of the URL methods used by default? both NSDocument and NSDocumentController can/does deal with URLs, but the various application delegate methods can only deal with filenames, which seems to be a bit of a show stopper -- I did once try to send a non-file URL to noteNewRecentDocumentURL:, but that did not work very well.






** Cocoa FAQ: <http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Is NSDocument read outside init?
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: New book on its way!!!
  • Next by Date: Re: Install Program for Completed App
  • Previous by thread: Re: counting characters
  • Next by thread: Re: Is NSDocument read outside init?
  • Index(es):
    • Date
    • Thread