7/15/2009

BOOL in an Array, casting class type


BOOL aBool;
NSMutableArray *aMutableArray = [[NSMutableArray alloc] initWithObjects:[NSNumber numberWithBool:NO], nil];
aBool = [(NSNumber *)[aMutableArray objectAtIndex:0] boolValue];

No comments:

Post a Comment