• 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: Release mode bindings crash and release pools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Release mode bindings crash and release pools


  • Subject: Re: Release mode bindings crash and release pools
  • From: Jonathan Mitchell <email@hidden>
  • Date: Fri, 16 Jun 2017 22:41:18 +0100

> On 16 Jun 2017, at 22:32, Quincey Morris
> <email@hidden> wrote:
>
> On Jun 16, 2017, at 13:48 , Charles Srstka <email@hidden> wrote:
>>
>> This is incorrect.
>
> It’s incorrect as a 2-way binding, but it works as a pair of so-called 1-way
> bindings, with the proviso that they may need to be unbound manually, to
> prevent reference cycles, which it sounds like is what Jerry is doing.
>
> The thing that I always said that no one believed is that there’s really no
> such thing as 1-way binding, and NSObject’s default implementation of the
> “bind:…” method does *not* establish a binding. It’s *part* of the
> implementation of a proper 2-way binding (as explained in the documentation
> you referenced), and for a given receiver class the method only establishes a
> 2-way binding if it’s an override that provides the rest of the functionality.
>
I sometimes use the default NSObject bind: to set up a simple one way operation
as you describe as opposed to a discrete observation.
It works fine.

I haven’t quite figured out yet how NSAutoUnbinder breaks the view <->
controller retain cycle when the binding object is the controller.


_______________________________________________

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

  • Follow-Ups:
    • Re: Release mode bindings crash and release pools
      • From: Quincey Morris <email@hidden>
References: 
 >Release mode bindings crash and release pools (From: Jonathan Mitchell <email@hidden>)
 >Re: Release mode bindings crash and release pools (From: Quincey Morris <email@hidden>)
 >Re: Release mode bindings crash and release pools (From: Jonathan Mitchell <email@hidden>)
 >Re: Release mode bindings crash and release pools (From: Quincey Morris <email@hidden>)
 >Re: Release mode bindings crash and release pools (From: Jerome Krinock <email@hidden>)
 >Re: Release mode bindings crash and release pools (From: Quincey Morris <email@hidden>)
 >Re: Release mode bindings crash and release pools (From: Jerome Krinock <email@hidden>)
 >Re: Release mode bindings crash and release pools (From: Charles Srstka <email@hidden>)
 >Re: Release mode bindings crash and release pools (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Release mode bindings crash and release pools
  • Next by Date: Re: Release mode bindings crash and release pools
  • Previous by thread: Re: Release mode bindings crash and release pools
  • Next by thread: Re: Release mode bindings crash and release pools
  • Index(es):
    • Date
    • Thread