• 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: Core Data: [Fixed] NSPredicate failing when using NSSQLiteStoreType
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: [Fixed] NSPredicate failing when using NSSQLiteStoreType


  • Subject: Re: Core Data: [Fixed] NSPredicate failing when using NSSQLiteStoreType
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 5 May 2009 11:59:40 -0400
  • Organization: Rogue Research Inc.

On 5/5/09 9:28 AM, Yvan BARTHÉLEMY said:

>Changing predicates raises other exceptions, but I couldn't make this
>work. I need to switch from XML to SQLite because my model needs to
>scale.
>
>Here is the other variants I tried and their associated exceptions :
>	[request setPredicate:[NSPredicate
>predicateWithFormat:@"self.relB[SIZE] = 0"]];
>		*** Terminating app due to uncaught exception
>'NSInvalidArgumentException', reason: '*** -constantValue only defined
>for abstract class.  Define -[NSFunctionExpression constantValue]!'

Although the SQL store has many advantages, it does not support all the
predicate constructions that NSPredicate supports.  If you search the
archives, there have been discussions in the past.  [size] is definitely
one of those cases.

(Also, if your app is garbage collected, you should probably not switch
to SQL.  See archives again.)

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Core Data: [Fixed] NSPredicate failing when using NSSQLiteStoreType (From: Yvan BARTHÉLEMY <email@hidden>)

  • Prev by Date: Re: A tree data structure?
  • Next by Date: Re: WTF? Is a file corrupted?
  • Previous by thread: Core Data: [Fixed] NSPredicate failing when using NSSQLiteStoreType
  • Next by thread: Printing an NSDocument
  • Index(es):
    • Date
    • Thread