FROM : Pierre-Olivier Latour
DATE : Thu Jan 09 20:24:55 2003
> Leave away the registering part and just use [[NSUserDefaults
> standardUserDefaults] setObject: myObject forKey: @"key"] and then call
> synchronize. At least for me, this works.
> Registering means, you specify the standard settings that are used if
> nothing is specified in the preferences file (e.g. first run on a users
> system).
Sure, that's why I would like to keep that as it is very convenient.
>> [defaults setBool:![defaults boolForKey:kKey_VerticalSync]
>> forKey:kKey_VerticalSync];
>
> If you restore it to the standard, I even assume, that it will
> disappear from the file again (not sure on that though).
Curiously, it doesn't. That's why I don't this in coherent behavior.
_____________________________________________________________
Pierre-Olivier Latour <email_removed>
Palo Alto, USA http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Thu Jan 09 20:24:55 2003
> Leave away the registering part and just use [[NSUserDefaults
> standardUserDefaults] setObject: myObject forKey: @"key"] and then call
> synchronize. At least for me, this works.
> Registering means, you specify the standard settings that are used if
> nothing is specified in the preferences file (e.g. first run on a users
> system).
Sure, that's why I would like to keep that as it is very convenient.
>> [defaults setBool:![defaults boolForKey:kKey_VerticalSync]
>> forKey:kKey_VerticalSync];
>
> If you restore it to the standard, I even assume, that it will
> disappear from the file again (not sure on that though).
Curiously, it doesn't. That's why I don't this in coherent behavior.
_____________________________________________________________
Pierre-Olivier Latour <email_removed>
Palo Alto, USA http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Pierre-Olivier Lat… | Jan 8, 21:51 | |
| Robert Cerny | Jan 9, 09:12 | |
| Scott Anguish | Jan 9, 10:18 | |
| Pierre-Olivier Lat… | Jan 9, 11:04 | |
| Marco Binder | Jan 9, 15:44 | |
| Alex Rice | Jan 9, 16:18 | |
| Mike Ferris | Jan 9, 19:47 | |
| Pierre-Olivier Lat… | Jan 9, 20:24 | |
| Pierre-Olivier Lat… | Jan 9, 20:25 | |
| Chris Parker | Jan 9, 22:34 |






Cocoa mail archive

