I was thinking of adding a Cocoa Binding during my window-controller's did-load
method. But where would the unbinding go? I see waiting until deinit or
implementing NSWindowDelegate and using windowWillClose.
Is there a similar access point for view-controllers?
Sent from my iPhone
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
In what way is its controller getting in the way? Those do a lot together. If
used with a collection view, you might find my solution helps:
https://whatweretheythinkingblog.wordpress.com/2016/11/19/effectively-using-uisearchcontroller-with-uicollectionview/
--
Gary L. Wade (Sent from my iPad)
ht
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
> 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
Just don't try binding to an arrayController via representedObject. I've
resorted to using representedObject to establish a local iVar to reference
such an arrayController. That works.
On 1/12/17 1:42 PM, "cocoa-dev-requ...@lists.apple.com"
wrote:
>
On Jan 11, 2017, at 13:16 , Daryle Walker w
I need my search bar to appear under the nav bar. We also have an extra view
outside and above the collection view. On top of that, I don't create a new
view for the results, but rather use the existing view. Once the user selects
an item that causes a push, and then goes back, everything is won
Your experience mirrors my own. Look at what I wrote, and you should be closer
to your goals. I was also using a customized refresh control, and it appears
sufficiently correct when pulling, between the search bar and collection view.
You might need to adjust some values for your needs, thoug