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



That second link was the answer. I had found the first link and was using it as a guide... I hadn't noticed the "Variable" tag in there, nor does it say how to change the state of the field. Thank you for your help with this.

As an aside, did the XCode team thing a pop-up menu for that state was too hard or something? That's just about the most esoteric and buried, but still *really* needed feature I've ever seen in an Apple product. Maybe I just haven't been around long enough though. Maybe someone could add a tooltip to the text field: "Control-Click to change the state of this field."?

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.