Re: Negate a boolean NSSNumber
Re: Negate a boolean NSSNumber
- Subject: Re: Negate a boolean NSSNumber
- From: "Julien Jalon" <email@hidden>
- Date: Sat, 3 Mar 2007 00:27:14 +0100
NSNumber is an immutable class so you can't "negate" a NSNumber.
--
Julien
On 3/3/07, Martin <email@hidden> wrote:
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
_______________________________________________
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