• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programatically Uncheck "Change Picture" In Desktop Settings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically Uncheck "Change Picture" In Desktop Settings?


  • Subject: Re: Programatically Uncheck "Change Picture" In Desktop Settings?
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 13 Feb 2009 21:53:05 -0600

On Feb 13, 2009, at 9:36 PM, I. Savant wrote:

On Feb 13, 2009, at 5:34 PM, Ken Thomases wrote:

Contrary to I. Savant, I don't think going through NSUserDefaults or CFPreferences will work. It still won't inform the necessary processes of the change in an active manner.

You're likely right - the process in question would have to be listening for changes to its preferences, which it's probably not.

I don't even think there's a supported way for it to listen for changes. CFPreferences and NSUserDefaults can synchronize with externally-made changes, but in order to detect changes you'd have to make a record of the pre-synchronize prefs, synchronize, and then compare the new state to the old. Maybe NSUserDefaultsController does this -- I don't know, but I doubt it.



However, my point was to illustrate that merely changing a plist is the absolute least likely to trigger the desired change in the active application / system process using that plist as a persistent store for the state of its preferences. [...]

Sure. Agreed.

Cheers,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Programatically Uncheck "Change Picture" In Desktop Settings?
      • From: "I. Savant" <email@hidden>
References: 
 >Programatically Uncheck "Change Picture" In Desktop Settings? (From: Chunk 1978 <email@hidden>)
 >Re: Programatically Uncheck "Change Picture" In Desktop Settings? (From: Ken Thomases <email@hidden>)
 >Re: Programatically Uncheck "Change Picture" In Desktop Settings? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Can anyone suggest a way to do this?
  • Next by Date: Re: Programatically Uncheck "Change Picture" In Desktop Settings?
  • Previous by thread: Re: Programatically Uncheck "Change Picture" In Desktop Settings?
  • Next by thread: Re: Programatically Uncheck "Change Picture" In Desktop Settings?
  • Index(es):
    • Date
    • Thread