Re: Core Data Inverse To-Many/To-One Bug?
Re: Core Data Inverse To-Many/To-One Bug?
- Subject: Re: Core Data Inverse To-Many/To-One Bug?
- From: Niko Matsakis <email@hidden>
- Date: Thu, 2 Jun 2005 10:48:51 +0200
This suggests the problem is in the line before XXX. Where is
'array' coming from? My *guess* is that it's from a relationship?
In which case it's a set, not an array...
The array is coming from a fetch request, which returns an NSArray*.
Here you should be using 'mutableSetValueForKey:', not 'valueForKey:'.
<http://developer.apple.com/documentation/Cocoa/Reference/
CoreData_ObjC/Classes/NSManagedObject.html>
Thanks; I realized this and switched it, but then I ran into some
other problems... I sent mail about those just now though.
Niko
_______________________________________________
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