• 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 Desktop picture from Cocoa app in 10.1 without re-starting Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder


  • Subject: Re: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder
  • From: "Pierre d'Herbemont" <email@hidden>
  • Date: Wed, 17 Oct 2001 20:45:24 +0200

Hi Mark,

I work on RandomBackground:
http://homepage.mac.com/steg/randombackground
which do what you want to do. You should have a look to the source code.
The version on the website doesn't tell finder to change background but I
have one which do it.
To tell the finder the background is changed you send a
[[NSNotificationCenter defaultCenter]
postNotificationName:@"com.apple.desktop" object:@"BackgroundChanged"];
This is more a hack. but it work.

Pierre

le 13/10/01 13:11, Mark Orchard ` email@hidden a icrit :

> Hi all,
>
> This question was brought up pre 10.1 and the basic reply was that the 10.1
> Finder should be more scriptable to allow this to happen. I've looked at the
> Finder's AppleScript dictionary and didn't see anything obvious. 10.1 now
> includes a Desktop Preference panel that allows users to do this manually,
> but I haven't been able to find a way to remotely communicate with it (or
> any Pref. Panel) from an ObjC Cocoa app. I'm aware that I may have to
> include the Carbon framework to send AppleEvents at this stage, but I'm
> still not sure what kind of event I would need to send and to where. Any
> help or pointer to the appropriate documentation/resources would be much
> appreciated.
> I'm also a relative Cocoa/Unix newbie.
>
> Thanks,
>
> Mark Orchard
> IT Network Specialist
> IPMS Application Manager/Developer
> iTech
> email@hidden, email@hidden
> _______________________________________________
> cocoa-dev mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder (From: "Mark Orchard" <email@hidden>)

  • Prev by Date: Re: getting path info from PDF image?
  • Next by Date: Undocumented NSString API
  • Previous by thread: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder
  • Next by thread: Window Levels of Alerts
  • Index(es):
    • Date
    • Thread