Re: CFPreferences
Re: CFPreferences
- Subject: Re: CFPreferences
- From: Alan Smith <email@hidden>
- Date: Sat, 28 Jan 2006 11:21:53 -0500
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 <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.html
> has *real* sample code for setting the desktop picture, however it also
> contains a warning about not being future proof.
>
_______________________________________________
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