Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Predicate variable substitution




On Oct 29, 2005, at 12:51 PM, Mark Slater wrote:

Thank you... that made it work for the NSPredicate substitution. Unfortunately, XCode doesn't seem to allow non-String Literals in the fetch requests. I've selected "name" from the attribute list, "LIKE" from the operation list, and entered "$THE_NAME" (without quotes) in the text field, and XCode comes up with a predicate that has quotes around the text. Is this simply a known limitation for XCode's predicate editing?

Have you set the text field "state" to 'Variable', as shown in <http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/ Articles/pCreating.html#//apple_ref/doc/uid/TP40001793-219639- BCIIHDCH> and described in <http://developer.apple.com/documentation/ DeveloperTools/Conceptual/XcodeUserGuide21/Contents/Resources/ en.lproj/02_04_design_data_model/chapter_15_section_4.html>?


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
References: 
 >Predicate variable substitution (From: Mark Slater <email@hidden>)
 >Re: Predicate variable substitution (From: Mark Slater <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.