• 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: [NEWBIE] Boolean Class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE] Boolean Class?


  • Subject: Re: [NEWBIE] Boolean Class?
  • From: Jed Soane <email@hidden>
  • Date: Wed, 17 Aug 2005 12:12:20 +1200

You could use [NSNumber numberWithBool:YES]

Cheers
Jed

On Aug 17, 2005, at 11:57 AM, Charles Haron wrote:

Is there a class that represents a boolean value? I'm asking because I need to create a fetch request template that requires a boolean substitution variable.

When retrieving the fetch request from the object model, I don't know what type of object to use in place of "<#(id)object#>" (the object needs to represent a boolean value) in the following statement:

NSDictionary *subVars = [NSDictionary dictionaryWithObject:<#(id) object#> forKey:@"IN_STORE";
NSFetchRequest *fetchRequest = [mom fetchRequestFromTemplateWithName:@"unsoldItemsByLocation" substitutionVariables:subVars;


Thanks,
Charles
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >[NEWBIE] Boolean Class? (From: Charles Haron <email@hidden>)

  • Prev by Date: Re: [NEWBIE] Boolean Class?
  • Next by Date: Translation issue
  • Previous by thread: Re: [NEWBIE] Boolean Class?
  • Next by thread: Re: [NEWBIE] Boolean Class?
  • Index(es):
    • Date
    • Thread