• 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: ObjectController preventing WindowController from releasing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >ObjectController preventing window from closing (From: Jonathan Taylor <email@hidden>)
 >ObjectController preventing WindowController from releasing (From: Jonathan Taylor <email@hidden>)
 >Re: ObjectController preventing WindowController from releasing (From: Ken Thomases <email@hidden>)
 >Re: ObjectController preventing WindowController from releasing (From: Jonathan Taylor <email@hidden>)
 >Re: ObjectController preventing WindowController from releasing (From: Ken Thomases <email@hidden>)

  • Prev by Date: iCloud, core-data and transaction logs
  • Next by Date: QTKit: surely this should be trivial?
  • Previous by thread: Re: ObjectController preventing WindowController from releasing
  • Next by thread: UITextField and UIGestureRecognizers
  • Index(es):
    • Date
    • Thread