• 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 11:12:03 -0700


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:
This email sent to email@hidden


References: 
 >Predicate variable substitution (From: Mark Slater <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: XML-RPC and Encoding
  • Previous by thread: Predicate variable substitution
  • Next by thread: Re: Predicate variable substitution
  • Index(es):
    • Date
    • Thread