• 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: [iPhone} Exception After Creating First Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: [iPhone} Exception After Creating First Object


  • Subject: re: [iPhone} Exception After Creating First Object
  • From: Steve Steinitz <email@hidden>
  • Date: Sat, 10 Oct 2009 18:17:54 +1100

Hello,

I got a couple of private messages about breakpoints and stacktraces, which, of course, I had done before I posted my question. That's how I discovered that [mod processPendingChanges] led to an exception when adding to an empty database table.

I learned a little more about the exception. It occurs in [self.tableView endUpdates] which is invoked, I think, as a result of [moc processPendingChanges].

I have had problems in the past with [self.tableView endUpdates] with empty database tables but thought that this time was different. Previously, I had tried preventing [self.tableView endUpdates] being called when the database tables was empty but that caused other problems (e.g. my Add <Entity Name> button didn't appear when the database table was empty).

I've seen others mention problems with [self.tableView endUpdates]. Does anyone know how to make [self.tableView endUpdates] less vulnerable when the associated database table is empty?

Best regards,

Steve

_______________________________________________

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


  • Prev by Date: Re: Document architecture - stop it from opening untitled documents?
  • Next by Date: Re: How to ease the burden on the Garbage Collector?
  • Previous by thread: [iPhone} Exception After Creating First Object
  • Next by thread: re: [iPhone} Exception After Creating First Object
  • Index(es):
    • Date
    • Thread