• 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: window controllers and managed object contexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: window controllers and managed object contexts


  • Subject: Re: window controllers and managed object contexts
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 26 Sep 2008 15:29:43 -0400

On Fri, Sep 26, 2008 at 2:33 PM, Daniel Child <email@hidden> wrote:
> I tried this, but with Core Data, I'm getting a message that I need a
> managed object context (moc). I know how to get the moc, but I can't figure
> out who is calling for the moc in the first place. Something inside of the
> underneath NSWindowController code, I suspect. The window controller's
> initialization goes fine, as does awakeFromNib. Also, the File's Owner is
> set to the window controller class. So which method (one called by Cocoa,
> not me) needs to be overwritten so I can pass the moc to it?

Erm, NSWindowController shouldn't be asking for a MOC.  Perhaps
whatever NSControllers you have in your nibs haven't had their
managedObjectContext bindings fixed?

--Kyle Sluder
_______________________________________________

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: window controllers and managed object contexts
      • From: Daniel Child <email@hidden>
References: 
 >window controllers and managed object contexts (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: showing window causes EXC_BAD_ACCESS
  • Next by Date: Re: showing window causes EXC_BAD_ACCESS
  • Previous by thread: window controllers and managed object contexts
  • Next by thread: Re: window controllers and managed object contexts
  • Index(es):
    • Date
    • Thread