Contents

makeDocumentWithContentsOfURL:ofType:

Creates and returns a document object for the given document type from the contents of a given URL.

Declaration

- (id) makeDocumentWithContentsOfURL:(NSURL *) url ofType:(NSString *) type;

Discussion

Creates and returns an NSDocument object for document type docType from the contents of aURL. The returned object is not retained. Returns nil if the NSDocument subclass for docType couldn’t be determined or if the object couldn’t be created. This method calls the NSDocument method initWithContentsOfURL:ofType: and is called by openDocumentWithContentsOfURL:display:.

See Also

Deprecated Methods