Re: Opposite of windowDidLoad

2017-01-12 Thread Charles Srstka
> On Jan 12, 2017, at 12:53 PM, Quincey Morris > wrote: > > windowWillClose is an acceptable place to tear down the binding only if (a) > the thing bound, and the thing bound to, still exist, and (b) there is no > chance that the window will be re-opened. Both of those are typically true, > b

Re: Opposite of windowDidLoad

2017-01-12 Thread Quincey Morris
On Jan 12, 2017, at 03:46 , Daryle Walker wrote: > > I was thinking of adding a Cocoa Binding during my window-controller's > did-load method. But where would the unbinding go? You’re sort of asking the wrong question. The time to bind or unbind is dependent on the thing being bound and the th

Re: Opposite of windowDidLoad

2017-01-12 Thread Sandor Szatmari
If the window has the same lifespan as the controller, why not dealloc? Otherwise, wherever your closing your window. Sandor > On Jan 12, 2017, at 06:46, Daryle Walker wrote: > > I was thinking of adding a Cocoa Binding during my window-controller's > did-load method. But where would the unb