• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data adding new instance - creating relationship to existing instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data adding new instance - creating relationship to existing instance
      • From: Amy Heavey <email@hidden>
References: 
 >Core Data adding new instance - creating relationship to existing instance (From: Amy Heavey <email@hidden>)

  • Prev by Date: Re: How make a cocoa lib wich create a window ?
  • Next by Date: Re: Weird Error
  • Previous by thread: Core Data adding new instance - creating relationship to existing instance
  • Next by thread: Re: Core Data adding new instance - creating relationship to existing instance
  • Index(es):
    • Date
    • Thread