Instance Method

URLForImageResource:

Returns the location of the specified image resource as an NSURL.

Declaration

- (NSURL *)URLForImageResource:(NSImageName)name;

Parameters

name

The name of the image resource file. Including a filename extension is optional.

Return Value

An NSURL for the resource file or nil if the file was not found.

See Also

Finding Image Resources

- pathForImageResource:

Returns the location of the specified image resource file.

- imageForResource:

Returns an NSImage instance associated with the specified name, which can be backed by multiple files representing different resolution versions of the image.