• 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 Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Predicate Problems


  • Subject: Re: Predicate Problems
  • From: Charilaos Skiadas <email@hidden>
  • Date: Tue, 12 Jul 2005 14:41:56 -0500

SIZE is a reserved word, though it is not clear from the documentation what it is doing.
http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/ Articles/pSyntax.html


On Jul 12, 2005, at 2:03 PM, Jeff LaMarche wrote:

sizePredicate = [NSPredicate predicateWithFormat:@"size >= % @",sizeNum];
<snip>
SIZE >= 5


but if I do it with a string attribute called "kind", I get:

kind BEGINSWITH "Gr"

I don't know if it's relevant, but it seems odd that it's capitalizing my attribute name in the first case, but not in the second. In my travels thus far with Core Data, I've never before seen it capitalize the attribute name.

Does anybody know what I'm doing wrong?

TIA,
Jeff

Haris


_______________________________________________ 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 Problems (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: stringWithContentsOfURL doesn't work sometimes
  • Next by Date: Re: [[myObj retain] autorelease]
  • Previous by thread: Predicate Problems
  • Next by thread: Basic bindings questions
  • Index(es):
    • Date
    • Thread