• 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 save error with multiple persistent stores
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Core data save error with multiple persistent stores


  • Subject: RE: Core data save error with multiple persistent stores
  • From: Arthur C. <email@hidden>
  • Date: Mon, 17 Nov 2008 15:16:25 +0100
  • Importance: Normal

> All right, but that does not cover the case of an object being added  > using the 'add' button linked to the array controller (which btw is  > bound to the correct managedObjectContext). Then you end up directly  > in awakeFromInsert, which at least should be OK if it is executed  > only once.>Using -[NSArrayController add:] as an action is often suitable only  >for the simplest cases. In your case, it would not be unreasonable to  >write your own action (in, say, the window controller) to create the  >object and insert it in the right place with the right characteristics.>It might also be worth putting a test in awakeFromInsert -- first  >check if the object has been assigned to a persistent store, and only  >assign if it has not.Done that; it doesn't get called more than once, and it doesn't help to do the assignObject: toPersistentStore: outside the awakeFromInsert.Note that on systems with OS 10.5 (Leopard) it works fine, while on 10.4 (Tiger) it always gives the error... We'll try to set it up using configurations in the data model. Any other suggestions?Thanks,Arthur C.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________

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 save error with multiple persistent stores
      • From: Arthur C. <email@hidden>
References: 
 >Core data save error with multiple persistent stores (From: Arthur C. <email@hidden>)
 >RE: Core data save error with multiple persistent stores (From: Arthur C. <email@hidden>)

  • Prev by Date: Re: How to implement float min(float x, ...) ?
  • Next by Date: Re: Two arrays sharing the same adress space.
  • Previous by thread: Re: Core data save error with multiple persistent stores
  • Next by thread: RE: Core data save error with multiple persistent stores
  • Index(es):
    • Date
    • Thread