• 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: ARC and NSObjectController bindings through file's owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >ARC and NSObjectController bindings through file's owner (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: ARC and NSObjectController bindings through file's owner
  • Next by Date: Re: Auto-Layout Strangeness
  • Previous by thread: Re: ARC and NSObjectController bindings through file's owner
  • Next by thread: Re: ARC and NSObjectController bindings through file's owner
  • Index(es):
    • Date
    • Thread