Re: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder [Again]
Re: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder [Again]
- Subject: Re: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder [Again]
- From: "Pierre d'Herbemont" <email@hidden>
- Date: Sat, 27 Oct 2001 19:00:55 +0200
Hi,
You should look to the web archive: I post a replies.
You should have a look to RandomBackground SourceCode:
http://homepage.mac.com/steg/randombackground/
It change background. But the current version do not tell finder to reload
picture.
To reload picture you send a:
[[NSDistributedNotificationCenter defaultCenter]
postNotificationName:@"com.apple.desktop" object:@"BackgroundChanged"];
If you want to create a new Application which change background you maybe
want to create a free App, so You should join the RandomBackground Team.
Thanks.
(Sorry for my poor english)
Pierre
le 25/10/01 7:53, Mark Orchard ` email@hidden a icrit :
>
Hi,
>
>
I asked the question below about two weeks ago now and there were basically
>
no replies. I've been checking as much documentation as I can, Cocoa release
>
notes, Apple Tech. docs, Q&A without much luck. Since the "Desktop"
>
preference pane sits in the "Personal" section of System Preferences I
>
thought NSUserDefaults might be the place to look but I didn't see anything
>
promising. Maybe Apple don't want applications to change the Desktop
>
picture? If any Apple Engineers read this, is there any policy on this?
>
>
Previous Q:-
>
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