FROM : Alex Rice
DATE : Thu Jan 09 16:18:32 2003
On Wednesday, January 8, 2003, at 01:51 PM, Pierre-Olivier Latour
wrote:
> + (void) initialize
> {
> NSMutableDictionary* defaults = [NSMutableDictionary
> dictionary];
> [defaults setInt:640 forKey:kKey_ScreenWidth];
> [defaults setInt:480 forKey:kKey_ScreenHeight];
> [defaults setInt:32 forKey:kKey_ScreenDepth];
> [defaults setInt:16 forKey:kKey_ZDepth];
> [defaults setBool:YES forKey:kKey_VerticalSync];
> [defaults setInt:0 forKey:kKey_MaxFPS];
> [defaults setBool:YES forKey:kKey_LogFile];
> [defaults setInt:8765 forKey:kKey_ServerPort];
> [defaults setBool:NO forKey:kKey_HighPriorityThread];
> [[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
> }
NSMutableDictionary does not respond to setInt: or setBool:. Those are
messages that were only recently added to NSUserDefaults, not
NSMutableDictionary.
AFAIK to use NSUserDefaults registerDefaults: you must use NSNumbers
and put those into your NSMutableDictionary, then passing it to
registerDefaults:.
BTW synchronize is called automatically in NSDocument apps.
Alex Rice <<email_removed>> | Mindlube Software |
http://mindlube.com
what a waste of thumbs that are opposable
to make machines that are disposable Ani DiFranco
_______________________________________________
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 16:18:32 2003
On Wednesday, January 8, 2003, at 01:51 PM, Pierre-Olivier Latour
wrote:
> + (void) initialize
> {
> NSMutableDictionary* defaults = [NSMutableDictionary
> dictionary];
> [defaults setInt:640 forKey:kKey_ScreenWidth];
> [defaults setInt:480 forKey:kKey_ScreenHeight];
> [defaults setInt:32 forKey:kKey_ScreenDepth];
> [defaults setInt:16 forKey:kKey_ZDepth];
> [defaults setBool:YES forKey:kKey_VerticalSync];
> [defaults setInt:0 forKey:kKey_MaxFPS];
> [defaults setBool:YES forKey:kKey_LogFile];
> [defaults setInt:8765 forKey:kKey_ServerPort];
> [defaults setBool:NO forKey:kKey_HighPriorityThread];
> [[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
> }
NSMutableDictionary does not respond to setInt: or setBool:. Those are
messages that were only recently added to NSUserDefaults, not
NSMutableDictionary.
AFAIK to use NSUserDefaults registerDefaults: you must use NSNumbers
and put those into your NSMutableDictionary, then passing it to
registerDefaults:.
BTW synchronize is called automatically in NSDocument apps.
Alex Rice <<email_removed>> | Mindlube Software |
http://mindlube.com
what a waste of thumbs that are opposable
to make machines that are disposable Ani DiFranco
_______________________________________________
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

