• 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
NSDocument initWithContentsOfURL vs readFromURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument initWithContentsOfURL vs readFromURL


  • Subject: NSDocument initWithContentsOfURL vs readFromURL
  • From: Trygve Inda <email@hidden>
  • Date: Mon, 20 May 2013 03:29:33 -0700
  • Thread-topic: NSDocument initWithContentsOfURL vs readFromURL

When I open a document from a file (double clicking or via File-Open), my
Document object gets

-(id)initWithContentsOfURL:(NSURL *)absoluteURL ofType:(NSString *)typeName
error:(NSError **)outError

It seems like I could just read the file there and load it into my internal
structures in my Document instance.

Why then is there the method below (and when would it be called)?

-(BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName
error:(NSError **)outError





_______________________________________________

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: NSDocument initWithContentsOfURL vs readFromURL
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Sandboxing and ABAddressBook
  • Next by Date: Sandboxing and Apple System Log (asl) searches
  • Previous by thread: Re: Sandboxing and ABAddressBook
  • Next by thread: Re: NSDocument initWithContentsOfURL vs readFromURL
  • Index(es):
    • Date
    • Thread