• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing the desktop picture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Changing the desktop picture (From: Killobit <email@hidden>)
 >Re: Changing the desktop picture (From: "M. Uli Kusterer" <email@hidden>)
 >Re: Changing the desktop picture (From: Shawn Erickson <email@hidden>)
 >Re: Changing the desktop picture (From: Killobit <email@hidden>)

  • Prev by Date: Re: How far with accessors?
  • Next by Date: Re: How far with accessors?
  • Previous by thread: Re: Changing the desktop picture
  • Next by thread: Re: Changing the desktop picture
  • Index(es):
    • Date
    • Thread