• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Negate a boolean NSSNumber
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Negate a boolean NSSNumber (From: Martin <email@hidden>)

  • Prev by Date: Re: Negate a boolean NSSNumber
  • Next by Date: Re: Help needed with saving Core Data app data
  • Previous by thread: Re: Negate a boolean NSSNumber
  • Next by thread: C callback function
  • Index(es):
    • Date
    • Thread