NSDictionary instances cannot contain anything except subclasses of NSObject. You can set/retrieve BOOL values like so:
// Setting [self setKey4:[NSNumber numberWithBool:boolValue]];
// Retrieving BOOL widget = [[temp objectForKey:@"strKey4"] boolValue];
Hope that helps!
- Carter Allen
On Jul 21, 2010, at 5:29 PM, Clark Williams wrote: Suppose you have a NSDictionary* instance called temp. You've setup everything including the plist. The plist consists of: KeyName ValueType numKey0 NSNumber strKey1 NSString strKey2 NSString strKey3 NSString strKey4 BOOL+ <code_fragment_begins>
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|