Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Desktop Background

Desktop Background
Thread Tools
Fresh-Faced Recruit
Join Date: Aug 2006
Location: London, UK
Status: Offline
Reply With Quote
Jun 20, 2008, 04:55 PM
 
Hi,

I've been wondering for a while now, how can I change the background picture (on Mac OS X) programmatically, through Cocoa?

Thanks for any ideas,

George.
     
Senior User
Join Date: Sep 2007
Location: NY
Status: Offline
Reply With Quote
Jun 20, 2008, 10:12 PM
 
I'm sorry, I don't quite get what you are trying to do. Are you just trying to change your wallpaper without using system preferences? Are you trying to change it every so often because there is an option to do that in system preferences. Sorry if I'm on the wrong track.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 20, 2008, 10:15 PM
 
Use NSAppleScript or the Scripting Bridge and tell Finder to set it to whatever you want.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Fresh-Faced Recruit
Join Date: Aug 2006
Location: London, UK
Status: Offline
Reply With Quote
Jun 21, 2008, 02:11 PM
 
What I want to do is change the background picture of the desktop, using Cocoa. So, say, you choose a picture in the application, click a button, and that picture becomes the desktop background.
     
Mac Elite
Join Date: Jun 2006
Status: Offline
Reply With Quote
Jun 21, 2008, 05:57 PM
 
Safari can do this, so I would assume there's a way you can use this same "service"? Just a thought.

MBP 2.4/160/2/256
iMac 2.0/250/1/128
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 21, 2008, 06:26 PM
 
Yes, there is. I said what it was above.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:49 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2