Re: Stupid objective-c question
Re: Stupid objective-c question
- Subject: Re: Stupid objective-c question
- From: Uli Kusterer <email@hidden>
- Date: Sat, 24 Sep 2016 04:31:32 +0200
On 22 Sep 2016, at 04:00, Doug Hill <email@hidden> wrote:
> As to the context type, I would be interested to know of cases where the observer doesn't have control over the context.
As your quote says:
> "Contexts chosen in a similar manner in the super- or subclass will be unlikely to overlap."
It is to insulate code inherited from a superclass that observes the same property as code in the superclass. By using a unique context as an additional identifier for the subscription, the subclass can't accidentally unsubscribe the base class that still wants to stay subscribed.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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