Re: observeValueForKeyPath:... called too often in macOS 12
Re: observeValueForKeyPath:... called too often in macOS 12
- Subject: Re: observeValueForKeyPath:... called too often in macOS 12
- From: Graham Cox <email@hidden>
- Date: Tue, 18 Oct 2016 16:25:01 +1100
> On 15 Oct 2016, at 5:08 PM, Gerriet M. Denkmann <email@hidden> wrote:
>
> Any workaround for these multiple (and unnecessary) calls?
Do they actually cause any problems? If not, just move on - there’s probably no point worrying about it. If they do cause a problem, then that might indicate a code smell of your own. I wouldn’t base any critical code on the exact behaviour of a KVO notification. They’re mostly just there to update UI (and in that case even double KVO notifications shouldn’t cause double UI updates as they are coalesced anyway).
—Graham
_______________________________________________
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