• 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
Negate a boolean NSSNumber
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Negate a boolean NSSNumber
      • From: "Julien Jalon" <email@hidden>
    • Re: Negate a boolean NSSNumber
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: webFrame loadHTMLString and images
  • Next by Date: Re: Negate a boolean NSSNumber
  • Previous by thread: QTMovieView times Two
  • Next by thread: Re: Negate a boolean NSSNumber
  • Index(es):
    • Date
    • Thread