Never mind. Wrong use of a relationship caused the problem.

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin                                 
http://www.nemesys-soft.com/
Logiciels Nemesys Software                                      
[email protected]

On Feb 7, 2012, at 12:48, Laurent Daudelin wrote:

> 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.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to