Re: ARC and NSObjectController bindings through file's owner
Re: ARC and NSObjectController bindings through file's owner
- Subject: Re: ARC and NSObjectController bindings through file's owner
- From: Quincey Morris <email@hidden>
- Date: Wed, 30 Jul 2014 13:47:10 -0700
On Jul 30, 2014, at 13:33 , Sean McBride <email@hidden> wrote:
> File's Owner (my NSViewController subclass) responds to 'windowController' because I have a vanilla synthesized weak property relating my NSViewController to its containing window's controller.
This is the problem. Weak properties aren’t KVO compliant (they change to nil when the referenced object deallocates, but no KVO notification is produced), so you can’t safel bind through them.
_______________________________________________
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