Re: Core Data App With Auxiliary Panel
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