Weird problem with Core Data
Weird problem with Core Data
- Subject: Weird problem with Core Data
- From: Don Willems <email@hidden>
- Date: Fri, 20 Jan 2006 17:07:01 +0100
Hi.
I'm working on an RSS reader where the channel information and items
are saved using Core Data.
Each entity in de datamodel has a custom implementation class. So for
entity Channel I have class NEWSChannel.
Two days ago I started getting error messages, and app crashes.
The errors I get: -[NSCFArray member:]: selector not recognized [self
= 0x3f0e20]
Seems straightforward except that I never use the message member in
my code.
I found out that the error occurs when I send the message
addNewsItemsObject: to a NEWSChannel object.
- (void)addNewsItemsObject:(NEWSItem *)value
{
NSSet *changedObjects = [[NSSet alloc] initWithObjects:&value
count:1];
[self willChangeValueForKey:@"newsItems"
withSetMutation:NSKeyValueUnionSetMutation usingObjects:changedObjects];
[[self primitiveValueForKey: @"newsItems"] addObject: value];
[self didChangeValueForKey:@"newsItems"
withSetMutation:NSKeyValueUnionSetMutation usingObjects:changedObjects];
[changedObjects release];
}
The error happens at the second line in this method
(willChangeValueForKey:withSetMutation:usingObjects:).
This method has been automatically generated by XCode using the
contextual menu on the newsItems relationship in the Channel entity
(in the data model tool).
Stupid thing is that it worked a week ago. I've been working on the
GUI but not on the data part of the application, so I have no idea
what went wrong.
Any idea what is going on?
Thank you,
Don
_______________________________________________
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