objective c - UserDefaults in system preference pane installed for multiple users in OSX -
I have only a background app that is controlled through the preferences panel in the system preferences to communicate between the prefix and the app I use distributed notifications. The user is shared through the default. It all works very well.
The problem occurs when the user installs the "For all users" prefix pane, when prompted by the system priority pane In this case the prefix is written on ~ / Library / Preferences /
, as is "only for this user" installed. (I think this is the right behavior.) However, when Prefen reads a default key, then prefpane appears on / library / priority /
, not in the user's home directory.
To deposit it:
- The prefix pane is installed in: ~ / Library / PreferencePanes /
- The following: ~ / Library / Preferences /
- Read by default: ~ / Library / Preferences
- The prefix pane is installed in: / Library / Preferencespons /
- < Li> Written by default: ~ / library / preferences /
- reads by default: / Library / Preferences
?
Thank you, Cola
You essentially have the same design as Groovel is. We use CFPreferences to read and write user preferences. Watch and distribute the notification notification distributed to both the background app and the preepen to read the preferences again.
(Do not take away as far as it is, though it is ok to use NSN, NSAP etc., with the core foundation, and it is very easy to read.)
Comments
Post a Comment