Re: Release mode bindings crash and release pools
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