Re: change desktop picture on all displays
Re: change desktop picture on all displays
- Subject: Re: change desktop picture on all displays
- From: "Pierre Chatel" <email@hidden>
- Date: Tue, 12 Dec 2006 02:39:15 +0100
Here is the AppleEvent building part from the DeskPictAppDockMenu? sample
code:
AEBuildAppleEvent(kAECoreSuite,kAESetData,typeApplSignature,&sig,sizeof(OSType?),
kAutoGenerateReturnID,kAnyTransactionID,&tAppleEvent,&tAEBuildError,
"'----':'obj
'{want:type(prop),form:prop,seld:type('dpic'),from:'null'()},data:(@)",&tAEDesc);
The most important part is the formatting string wich basically describe the
apple event itself: "'----':'obj
'{want:type(prop),form:prop,seld:type('dpic'),from:'null'()},data:(@)" And
the class of the event: kAESetData
But where on earth does it says that it will set the data (picture) to the
*desktop* ?? I can't find any reference on the subject via google ! I need
to be able to set the picture to any connected desktop (multiple screens)
but I have no idea how to modify the formatting string to include mutliple
displays.
Please Help !
On 12/10/06, Pierre Chatel <email@hidden> wrote:
Hi List,
I need to change the desktop picture using Apple Event since it's the only
supported way in OSX.
I found this reference in the list:
http://developer.apple.com/samplecode/DeskPictAppDockMenu/listing3.html
It works great but the problem is that it can't change the desktop picture
on ALL the displays connected to the mac , only the main display !
Do someone on this list know how to adapt this code in order to change the
desktop on all displays ?
Thanks in advance,
Pierre.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden