Change Wallpaper

Hi,
I need to have a button in my app which allows the user to change their wallpaper when depressed. Is this allowed when selling the app through the store, or is this restricted due to security reasons?

I need the button to either open up the appropriate preferences window tab, for them to manually change it, or to automatically change the desktop background to a plain color.

Thanks.

Changing the desktop image can be achieved by addressing NSWorkpace (setDesktopImageURL…). This is no restricted method so I cannot image Apple opts against it.
Do you use a Declare Library which gives you access to NSWorkSpace or would you need an implementation? I have an old stand-alone implementation that could quickly be extended with the DesktopImage methods.

Ulrich,
at the moment I have nothing, I am simply enquiring as to if this is even possible.

However, if you have anything (Declares) etc. which you have available to share - das wre fantastisch :wink:

if you use MBS Plugin, it’s all there:

http://www.monkeybreadsoftware.net/class-nsworkspacembs.shtml

This does not have the Desktop image methods yet and I probably will redo this in the future. But if you like to play with it:
https://dl.dropboxusercontent.com/u/21200221/Xojo/MacOSWorkspace%20Demo.xojo_xml_project.zip

Thanks, I will take a look.

I’m curious how you’re going to detect the user is depressed :slight_smile:

I knew someone would comment on that - when I wrote it!
Thanks for not disappointing me :slight_smile:

I think that the picture on this blog are almost all english: http://terriblerealestateagentphotos.com/image/108003650261

What does that have to do with changing desktop wallpaper?

[quote=166941:@Richard Summers]I knew someone would comment on that - when I wrote it!
Thanks for not disappointing me :)[/quote]
A little levity never hurt :slight_smile:

color me equally puzzled