Re: boolean into NSDictionary
Re: boolean into NSDictionary
- Subject: Re: boolean into NSDictionary
- From: Andreas Schweizer <email@hidden>
- Date: Mon, 2 Jul 2001 23:50:34 +0200 (MET DST)
thanks to all who have responded -- the following did it:
>
NSNumber *boolNumber;
>
>
boolNumber = [myDictionary objectForKey:@"activeFlag"];
>
if ([boolNumber boolValue])
>
[myOtherDictionary setObject:[NSNumber numberWithBool:YES]
>
forKey:@"foundActiveObject"];
On Monday, July 2, 2001, at 11:07 AM, Andreas Schweizer wrote:
>
Hi!
>
>
does anybody know what class to use when you want to store boolean
>
values
>
into an NSMutableDictionary? I searched for a class like NSBoolean but
>
couldn't find one.
>
>
Thanks,
>
Andy
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev