how is it possible to read a preference file on the computer and store it's string or bool in my app's user defaults?
let's say i see that the prefs file for finder (com.apple.finder.plist) has BOOL:1 on WarnOnEmptyTrash. i would like my app to read that during launch, and act according to this value via an if statement. but how do get that value and place it in a variable for the if statement?
let's say i see that the prefs file for finder (com.apple.finder.plist) has BOOL:1 on WarnOnEmptyTrash. i would like my app to read that during launch, and act according to this value via an if statement. but how do get that value and place it in a variable for the if statement?