Re: Predicate variable substitution
Re: Predicate variable substitution
- Subject: Re: Predicate variable substitution
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 29 Oct 2005 11:12:03 -0700
On Oct 29, 2005, at 10:35 AM, Mark Slater wrote:
[ NSPredicate predicateWithFormat: @"name like '$THE_NAME'" ];
@"name like $THE_NAME"
By adding quotes around the variable name, you're making it a string
literal.
<http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/
Articles/pCreating.html#//apple_ref/doc/uid/TP40001793-219639-BCIIHDCH>
mmalc
_______________________________________________
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