• 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: CoreData Fetch Request Failing When Using NSDate in NSPredicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData Fetch Request Failing When Using NSDate in NSPredicate


  • Subject: Re: CoreData Fetch Request Failing When Using NSDate in NSPredicate
  • From: Jim Correia <email@hidden>
  • Date: Tue, 22 Nov 2005 20:51:00 -0500

On Nov 22, 2005, at 3:46 PM, David Garcea wrote:

[code snipped]

That seems to be a roundabout way to get a date 30 days ago from now, but in the end it seems ok. (Except that the date is going to be fixed in time when the smart group is created, unless you take other steps to march the predicate forward, so if I have your app running for 60 days, I'll get 60 days with of items, not 30.

When I print a description of this predicate to the console, I get something like this:
"dateAdded" > CAST(151788356.228000, "NSDate")

That isn't alarming...

The problem is that the fetch request usually (but not always) fails, and this is the cause that gets logged to the console:

[NSCFDate length]: selector not recognized

It works when I plug it into my testbed application. I didn't test it exhaustively. Your best bet is going to be to stop in the debugger in the failing case, look at the stack, and work backwards from there.


Jim
_______________________________________________
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: 
 >CoreData Fetch Request Failing When Using NSDate in NSPredicate (From: David Garcea <email@hidden>)

  • Prev by Date: [ANN] Lingon 1.0
  • Next by Date: Re: app icons
  • Previous by thread: CoreData Fetch Request Failing When Using NSDate in NSPredicate
  • Next by thread: Re: CoreData Fetch Request Failing When Using NSDate in NSPredicate
  • Index(es):
    • Date
    • Thread