Negate a boolean NSSNumber
Negate a boolean NSSNumber
- Subject: Negate a boolean NSSNumber
- From: Martin <email@hidden>
- Date: Sat, 3 Mar 2007 00:24:35 +0100
Hi,
What's the best way to negate a boolean wrapped up in an NSNumber ?
Something like :
NSNumber *b = [NSNumber numberWithBool:NO];
[b negate]; // so that [b boolValue] == YES
Thanks,
Martin.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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