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

Problem with CoreData


  • Subject: Problem with CoreData
  • From: Laurent Daudelin <email@hidden>
  • Date: Tue, 07 Feb 2012 12:48:10 -0800

Hello.

I have a very simple model with a table and some attributes in it. For some reason, I have an NSDate attribute that I want to use for a sort descriptor. The problem I'm having is that when I have my NSFetchedResultsController fetches the database, the NSDate attribute of all my fetched objects is always the current date, or now. When I look at the table in the database directly, I see there are different values for this attribute. There isn't any trick or manipulation behind the scene, my subclass of NSManagedObject just declares the properties that are in the table, nothing more, nothing less. I then added an NSString and basically the same thing is happening: when I look at the attribute in the table in the database, there are values for this string but when I fetch with my NSFetchedResultsController, all the strings are nil.

Has anybody ever seen this? What am I missing?

Thanks in advance for any pointer, help or info!

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
Logiciels Nemesys Software					email@hidden


_______________________________________________

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


  • Follow-Ups:
    • Re: Problem with CoreData
      • From: Fritz Anderson <email@hidden>
    • Re: Problem with CoreData
      • From: Laurent Daudelin <email@hidden>
  • Prev by Date: Re: Lion's 'restore windows' vs. app with initial 'login'
  • Next by Date: Re: Problem with CoreData
  • Previous by thread: Re: Difficulty Calling NSTableView's validateDrop: Method for Unit Testing
  • Next by thread: Re: Problem with CoreData
  • Index(es):
    • Date
    • Thread