• 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: Sat, 17 Jun 2017 11:48:03 +0100

> On 17 Jun 2017, at 01:54, Charles Srstka <email@hidden> wrote:
>
>>  it’s preferred that bindings go either through an NSObjectController, an
>> NSViewController, or something else that implements NSEditorRegistration.

I think that is a crucial aspect in all this.
I while back I configured bindings in contravention of the above and found
myself literally re-inventing NSEditorRegistration (just to get everything to
hang together) until the penny dropped.

In my case I route my object bindings through an NSObjectController hosted in
my NSViewController subclass - I find the that the extra level of indirection
gives flexibility.

The NSAutoUnbinder support is also crucial.
The public classes that implement it are:

NSViewController.
NSTableCellView
NSWindowController

J
_______________________________________________

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: 
 >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>)
 >Re: Release mode bindings crash and release pools (From: Charles Srstka <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: Choosing view controller for segue
  • Index(es):
    • Date
    • Thread