- NSMutableDictionary* dic = [ [ NSMutableDictionary alloc ] initWithObjectsAndKeys :
- @"500", @"MaxLoadedImages",
- @"10", @"RequestMaxImages",
- nil ];
- if ( dic )
- {
- [ [ NSUserDefaults standardUserDefaults ] setObject : dic forKey : @"flickr.com" ];
- [ dic release ];
- }
.............................
- NSDictionary* settings = [ [ NSUserDefaults standardUserDefaults ] objectForKey : @"flickr.com" ];
- NSInteger maxLoadedImages = [ [ settings objectForKey : @"MaxLoadedImages" ] integerValue ];
- NSInteger requestMaxImages = [ [ settings objectForKey : @"RequestMaxImages" ] integerValue ];
- NSLog(@"settings : %@", settings);
LOG
MaxLoadedImages = 500;
RequestMaxImages = 10;
}