Re: ObjectController preventing WindowController from releasing
Re: ObjectController preventing WindowController from releasing
- Subject: Re: ObjectController preventing WindowController from releasing
- From: Jonathan Taylor <email@hidden>
- Date: Tue, 08 Nov 2011 10:08:44 +0000
> Well, in this case I certainly think it would be better to bind the object controller to File's Owner.camera. Really, I wasn't so much getting at anything in particular, I just find it odd for an object controller to have a window controller as its content. I also find it odd to bind to File's Owner.self. I can't say for sure that either is the source of the problem, but they strike me as suspicious.
Hmm, certainly the problem seems to have gone away if I bind to File's Owner.camera. Interesting. I guess I should take that as a sign that I am expected to separate my model and controllers properly!
> If your data model is within the window controller and you want a means to use -commitEditing, then you should probably make the window controller conform to NSEditor and NSEditorRegistration, just as NSController (and thus NSObjectController) does.
I'll have a look at that, thanks._______________________________________________
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