• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Predicate variable substitution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Predicate variable substitution


  • Subject: Re: Predicate variable substitution
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 29 Oct 2005 13:01:40 -0700


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

  • Prev by Date: Re: Predicate variable substitution
  • Next by Date: Creating a clock and updating a textfield
  • Previous by thread: Re: Predicate variable substitution
  • Next by thread: Re: Predicate variable substitution
  • Index(es):
    • Date
    • Thread