Re: NSDictionary with bool and float

2008-03-28 Thread Mr. Gecko
Thanks it works with this code NSMutableDictionary *plist = [NSMutableDictionary dictionary]; [plist setObject:@"Bob" forKey:@"name"]; [plist setValue:[NSNumber numberWithBool:YES] forKey:@"theme"]; [plist setValue:[NSNumber numberWithFloat:4.0] forKey:@"version"]; [plist writeToFile:@"/file.plist

Re: NSDictionary with bool and float

2008-03-28 Thread Jeff LaMarche
Take a look at NSValue and NSNumber http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSValue_Class/Reference/Reference.html http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSNumber_Class/Reference/Reference.html They can be used to store raw

NSDictionary with bool and float

2008-03-28 Thread Mr. Gecko
Hello I am wondering if there is a way to have a BOOL or a Float in an NSDictionary I know you can in an NSUserDefaults but I need it for NSDictionary so I can save it in a package for themes or whatever. is this possible? Here is my code I tried. NSMutableDictionary *plist = [NSMutableDicti