Re: Changing the desktop picture
Re: Changing the desktop picture
- Subject: Re: Changing the desktop picture
- From: Finlay Dobbie <email@hidden>
- Date: Thu, 27 May 2004 00:34:06 +0100
On 26 May 2004, at 23:16, Killobit wrote:
Well, you really dont have to use an apple event, while searching the
list archive (took forever to the dang search page to load...) i found
this bit of code that works wonderfully
[[NSDistributedNotificationCenter defaultCenter]
postNotificationName:@"com.apple.desktop"
object:@"BackgroundChanged"];
just go to the plist file, change the ImageFilePath Key's value to a
picture that exists, then run that code in a simple application and it
will update the desktop picture WITHOUT restarting the finder AND
without apple events =)
Do not rely on this. It is not documented, and it is an implementation
detail.
One other thing does anyone know where some documentation is for
making a contextual menu item for the finder is? Thanks for all help
in advance =)
Towards the end of Carbon's Menus.h IIRC.
-- Finlay
_______________________________________________
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.