• 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: 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


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

  • Prev by Date: Re: Modal dialog without NSApplication
  • Next by Date: Re: how to set Document type and its icon programatically
  • Previous by thread: Re: Core Data adding new instance - creating relationship to existing instance
  • Next by thread: File I/O
  • Index(es):
    • Date
    • Thread