Instance Method

initWithContentsOfURL:

Initializes and returns an image object with the contents of the specified URL.

Declaration

- (instancetype)initWithContentsOfURL:(NSURL *)url;

Parameters

aUrl

The URL identifying the image.

Return Value

An initialized NSImage object or nil if the method cannot create an image representation from the contents of the specified URL.

See Also

Creating Images from Resource Files

- initByReferencingFile:

Initializes and returns an image object using the specified file.

- initByReferencingURL:

Initializes and returns an image object using the specified URL.

- initWithContentsOfFile:

Initializes and returns an image object with the contents of the specified file.