Instance Method

desktopImageURLForScreen:

Returns the URL for the desktop image for the given screen.

Declaration

- (NSURL *)desktopImageURLForScreen:(NSScreen *)screen;

Parameters

screen

The screen for which to get the desktop image.

Return Value

The desktop image.

Discussion

You must call this method from your app’s main thread.

See Also

Managing the Desktop Image

- setDesktopImageURL:forScreen:options:error:

Sets the desktop image for the given screen to the image at the specified URL.

- desktopImageOptionsForScreen:

Returns the desktop image options for the given screen.

NSWorkspaceDesktopImageOptionKey

Keys that indicate how to display a new desktop image.