Re: Fetch request problem with core data relationship and NSTableView
Re: Fetch request problem with core data relationship and NSTableView
- Subject: Re: Fetch request problem with core data relationship and NSTableView
- From: George Orthwein <email@hidden>
- Date: Sat, 16 Jun 2007 02:21:24 -0400
I was able to replicate this and narrowed it down to the
executeFetchRequest in awakeFromInsert causing the problem. Try
turning off "Automatically Prepares Content" on the Charge array
controller, that seemed to solve the problem for me, although I'm not
sure why.
I kept looking and I did see this previously mentioned in the
archives with an alternate solution:
http://lists.apple.com/archives/cocoa-dev/2005/Sep/msg00175.html
However, to guarantee you're getting the true "last object" you're
going to have to consult the array controller anyway, right? So it
might be better to put all this initialization in the controller
layer anyway. I think you can use newObject on the Charge array
controller, set the relationship to the Currency controller's
lastObject, and then use addObject....
George
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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