• 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: NSNumber numberWithBool ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumber numberWithBool ?


  • Subject: Re: NSNumber numberWithBool ?
  • From: Daniel Todd Currie <email@hidden>
  • Date: Sun, 25 Jan 2004 19:36:58 -0800

Your code snippet will end up testing if such a dictionary value exists. you want:

if ([[tempDict valueForKey:@"status"] boolValue])

// Daniel Currie



On 2004 Jan 25, at 19:19, email@hidden wrote:

if i set a numberWithBool into a dictionary can i check it like this

if ([tempDict valueForKey:@"status"])

to see if its true or not?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSNumber numberWithBool ?
      • From: Glen Low <email@hidden>
References: 
 >NSNumber numberWithBool ? (From: email@hidden)

  • Prev by Date: NSNumber numberWithBool ?
  • Next by Date: Re: NSNumber numberWithBool ?
  • Previous by thread: NSNumber numberWithBool ?
  • Next by thread: Re: NSNumber numberWithBool ?
  • Index(es):
    • Date
    • Thread