Re: [NEWBIE] Boolean Class?
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