Re: Predicate variable substitution
Re: Predicate variable substitution
- Subject: Re: Predicate variable substitution
- From: Mark Slater <email@hidden>
- Date: Sat, 29 Oct 2005 16:05:54 -0700
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:
This email sent to email@hidden