Re: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder [Success!]
Re: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder [Success!]
- Subject: Re: Changing Desktop picture from Cocoa app in 10.1 without re-starting Finder [Success!]
- From: Douglas Davidson <email@hidden>
- Date: Fri, 26 Oct 2001 11:09:27 -0700
On Friday, October 26, 2001, at 10:24 AM, Mark Orchard wrote:
Anyway, I'm very happy at the moment although I know this is going to
break
in some future OS revision. Writing directly to plists is too low-level.
I'll only feel comfortable about non-breakage of my app. if Apple
supply a
higher level API for writing User property lists in some AppKit
somewhere.
I wonder what Apple's official position is on application's writing
directly
to property lists?
I'd assume that it would be totally unsupported but I also get the
impression that a lot of developers are doing it!
Do not write directly to preference plists. The API for modifying
preferences is CFPreferences, or at the Foundation level,
NSUserDefaults. Having your app modify the preferences for someone
else's app is also bad form--unless those preferences have been
documented--but not nearly as bad as modifying the plists directly.
Douglas Davidson