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: Fri, 31 Jul 2009 22:58:19 -0600
On Jul 31, 2009, at 9:33 PM, Kyle Sluder wrote:
Unrelated note: you need to assign self = [super initWithWindowName:
…].
My code here came out of Hillegass Third Edition Chapter 12. I will
need to think about this.
Because you have a managedObjectContext ivar, you never change its
value so it defaults to nil, and +[NSObject(NSKeyValueCoding)
accessInstanceVariablesDirectly] returns YES, -[AuxPanelController
objectForKey:@"managedObjectContext"] will always return nil. Ditch
the ivar.
Yes I see your point. Ditched the ivar but still get "Cannot perform
operation without a managed object context" error. Must be some other
reason why the binding is not working.
Richard
_______________________________________________
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