Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?
Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?
- Subject: Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?
- From: Ken Thomases <email@hidden>
- Date: Sun, 09 Sep 2012 14:04:49 -0500
On Sep 9, 2012, at 4:32 AM, Motti Shneor wrote:
> Hi everyone. This seems a novice question, but I could not find any high-level approach for that.
>
> Some details of my special need: I have an NSViewController subclass, that should observe some attribute of its representedObject.
>
> However, the representedObject may change to another, become nil etc.
Why is that a "however"? What's the problem? Since the representedObject is KVO-compliant, all observations _through_ that property will automatically follow it as it changes.
Regards,
Ken
_______________________________________________
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