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: Amy Heavey <email@hidden>
- Date: Sat, 20 Sep 2008 08:01:13 +0100
Thank You, and I am very sorry for being so dim,
I'm working on an app that accessing an existing file that Definitely
has the Categories, but I'd forgotten that I'd been working on an
empty file to make it easier to see changes I was making!
Many Thanks
Amy
On 19 Sep 2008, at 19:23, Jamie Hardt wrote:
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