Re: Predicate variable substitution
Subject : Re: Predicate variable substitution
From: mmalcolm crawford <email@hidden >
Date: Sat, 29 Oct 2005 11:12:03 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.