Re: Changing the desktop picture
Re: Changing the desktop picture
- Subject: Re: Changing the desktop picture
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 26 May 2004 14:10:01 +0200
At 4:21 Uhr -0700 26.05.2004, Killobit wrote:
I'm new to the lists and here is my first question (probably the
first of many =) )
Is it possilbe to change the desktop picture programmatically and if
so, how do i do it?
Thanks very much in advance for ANY and ALL help
~/Library/Preferences/com.apple.desktop.plist
And yes, that "garbage data" in there is an AliasRecord, so you'll
want to use the excellent BDAlias class to produce that.
Note that this may not be all, though. You'd need some way to tell
the Finder to reload the image, and right now the only way I know is
to quit and restart the Finder, which you wouldn't want to do too
often.
An alternate approach may be to create a window of your own at the
kCGDesktopWindowLevel and draw whatever you want to have on the
desktop there. Since files on the desktop are drawn slightly above
that on the kCGDesktopIconWindowLevel, it'd look like the regular
desktop, but you could even play a movie on the desktop that way if
you wanted.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.