• 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: Fetch request problem with core data relationship and NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >RE: Fetch request problem with core data relationship and NSTableView (From: "Danny Callanan" <email@hidden>)

  • Prev by Date: Core Data File Sharing via an AFP Alias
  • Next by Date: Re: Creating balloon type of window in Cocoa
  • Previous by thread: Re: Fetch request problem with core data relationship and NSTableView
  • Next by thread: CGImage vs NSImage
  • Index(es):
    • Date
    • Thread