Re: controller question
Re: controller question
- Subject: Re: controller question
- From: Kyle Sluder <email@hidden>
- Date: Tue, 27 Sep 2011 12:40:34 -0700
Whoops, apparently only sent this to Quincey. So unfortunately, no
good news for you, Ariel. You need to either bind the controller's
contentArray binding, or manually set its contentObject property. The
insertion and removal methods on NSArray cannot possibly be
KVO-compliant because NSArray in its entirety is not KVO-compliant.
--Kyle Sluder
---------- Forwarded message ----------
From: Kyle Sluder <email@hidden>
Date: Tue, Sep 27, 2011 at 10:47 AM
Subject: Re: controller question
To: Quincey Morris <email@hidden>
On Tue, Sep 27, 2011 at 10:29 AM, Quincey Morris
<email@hidden> wrote:
> However, since part of an array controller's API contract is to track KVO-compliant changes to the content array, I'm pretty sure it *does* observe the object, and KVO-observe it too.
You cannot KVO-observe an NSArray. -[NSArray
addObserver:forKeyPath:options:context:] is implemented to throw an
exception.
--Kyle Sluder
_______________________________________________
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