> On 1 Mar 2015, at 12:46 am, Juanjo Conti <jjco...@carouselapps.com> wrote:
> 
> This settings are not accesibles via NSUserDefaults but they are via CF.
> 
> I was able to do this by code
> 
> var moduleDict = CFPreferencesCopyAppValue("moduleDict",
> "com.apple.screensaver") as CFDictionary
> 
> but when I try to get one value from that "dict" the program crash in this
> line:
> 
> var saverName = CFDictionaryGetValue(moduleDict, "moduleName")
> 


You're trying to use a C string as a key, not a CFString. Try @"moduleDict" 
instead.


--Graham



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to