• 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 App With Auxiliary Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data App With Auxiliary Panel


  • Subject: Re: Core Data App With Auxiliary Panel
  • From: Richard Somers <email@hidden>
  • Date: Sat, 1 Aug 2009 10:32:53 -0600

On Aug 1, 2009, at 8:03 AM, Richard Somers wrote:

The error message "Cannot perform operation without a managed object context" indicates the binding is not working.

Upon further investigation I have discovered that my window controller -document method returns nil. So as far as the binding is concerned I have no document and no managed object context. I thought the - document method would automatically return a pointer to my persistent document but that is not the case. I thought about using -setDocument but the documentation states that you should never directly call this method.


So how do I get my NSWindowController subclass -document method to return a pointer to my persistent document?

Richard

P.S. I am getting better at debugging bindings. It is possible:)

_______________________________________________

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


References: 
 >Re: Core Data App With Auxiliary Panel (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: incorrect checksum for freed object
  • Next by Date: Re: Core Data App With Auxiliary Panel
  • Previous by thread: Re: Core Data App With Auxiliary Panel
  • Next by thread: Re: Core Data App With Auxiliary Panel
  • Index(es):
    • Date
    • Thread