DesktopImage

Last Revision:
Version 1.1, 2012-08-29
Upgraded to Xcode 4.4 and Mac OS X 10.8, fixed some compiler warnings, now using NSURL instead of string paths.
(Full Revision History)
Build Requirements:
Xcode 4.4, Mac OS X 10.8 or later
Runtime Requirements:
Mac OS X 10.6.x or later

"DesktopImage" is a Cocoa sample application that demonstrates how to use the NSDesktopImages category of NSWorkspace. It shows how to use this set of APIs to set the desktop image for a given screen. An NSURL is used to describe that image.

An "options" dictionary controls how the image is presented: scaling factor, clipping state which affects the interpretation of Proportional scaling types, and fill color applied to any empty space around the image.