NSDictionary with bool and float
NSDictionary with bool and float
- Subject: NSDictionary with bool and float
- From: "Mr. Gecko" <email@hidden>
- Date: Fri, 28 Mar 2008 21:13:51 -0500
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 = [NSMutableDictionary dictionary];
[plist setObject:@"Bob" forKey:@"name"];
[plist setBool:YES forKey:@"theme"];
[plist setFloat:4.0 forKey:@"version"];
[plist writeToFile:@"/file.plist" atomically:YES];
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden