> 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 (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