Re: CFPreferences
Re: CFPreferences
- Subject: Re: CFPreferences
- From: Rosyna <email@hidden>
- Date: Sat, 28 Jan 2006 09:32:51 -0700
It's ready made code that you can just copy and paste in. Don't be so
afraid of carbon.
Ack, at 1/28/06, Alan Smith said:
It seems rather unnessasaryily complicated, and that stuff about
Apple Event is pretty gross. And it's Carbon. Which, from reading a
lot about Cocoa, got the feeling it was not a very good language and
that I should avoid it if possible. I did try your NSDictionary
stuff but at the CFPreferencesCopyAppValue the dictionary remains
empty. Argh! Why me? I found a desktop picture changer on macupdate
and it's free so I'll ask the dev about it. What about the open
dialog? Anyone?
Cheers, Alan
On 1/28/06, Rosyna <<mailto:email@hidden>email@hidden> wrote:
make a deep mutable copy (not a normal one, but a deep one) of the
top dictionary then change the values and set the top dictionary
back to the preferences. however, writing is especially dangerous as
it isn't your preference file and the format isn't exactly
documented. Also, it may look at the Alias (as it should) before it
even bothers to look at the path (which should never actually be
queried). In which case you'd have to update the alias data, even
though the format is known today, it is not documented and may
change in the future.
<http://developer.apple.com/samplecode/DeskPictAppDockMenu/listing3.h>http://developer.apple.com/samplecode/DeskPictAppDockMenu/listing3.h
tml has *real* sample code for setting the desktop picture, however
it also contains a warning about not being future proof.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden