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 (Cocoa-dev@lists.apple.com)

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

This email sent to [EMAIL PROTECTED]

Reply via email to