Text after
I have a preference pane bundle (it runs in system preferences). I designed the interface using the interface builder, where I tied the "Automatically Start" checkbox to the shared user default. It works great but it writes preference for com.apple.systempreferences. I would like to have my preferences in com.example.mybundle default. How do I do this?
I think I need to add a user defaults controller in the interface builder, but how can I tell it to map with com.example.mybundle?
Thanks all
You have an NSDictionaryController whose firmity is done through Want to force - [NSUserDefaults] persistentDomainForName:]
and - [NSUserDefaults setPersistentDomain: forName:]
Although it's clearly just as easy to use + [NSDictionary dictionaryWithContentsOfFile:]
and - [NSDictionary writeToFile: atomically:].
Comments
Post a Comment