Instance Method

desktopImageOptionsForScreen:

Returns the desktop image options for the given screen.

Declaration

- (NSDictionary<NSWorkspaceDesktopImageOptionKey, id> *)desktopImageOptionsForScreen:(NSScreen *)screen;

Parameters

screen

The screen for which to get the desktop image options.

Return Value

A dictionary containing key-value pairs specified in Desktop Image Dictionary Keys.

Discussion

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

See Also

Managing the Desktop Image

- desktopImageURLForScreen:

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

- setDesktopImageURL:forScreen:options:error:

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

NSWorkspaceDesktopImageOptionKey

The following keys may be specified or returned in the options dictionary for setDesktopImageURL:forScreen:options:error:.