Re: Core Data adding new instance - creating relationship to existing instance
Re: Core Data adding new instance - creating relationship to existing instance
- Subject: Re: Core Data adding new instance - creating relationship to existing instance
- From: Jamie Hardt <email@hidden>
- Date: Fri, 19 Sep 2008 11:23:21 -0700
Hi-
Your fetch request isn't finding any Categories, and the array
returning from executeFetchRequest is empty. Before doing the
setValue:forKey:, you should test the returned array from
executeFetchRequest to make sure it contains >0 categories, and handle
the situation appropriately if it doesn't. You should also, by-the-
by, be passing an NSError pointer to executeFetchRequest: and testing
that after it returns to make sure an error didn't occur.
On Sep 19, 2008, at 10:47 AM, Amy Heavey wrote:
-[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
_______________________________________________
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