• 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: observeValueForKeyPath:... called too often in macOS 12
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >observeValueForKeyPath:... called too often in macOS 12 (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: observeValueForKeyPath:... called too often in macOS 12
  • Next by Date: Re: inconsistencies in view renderings
  • Previous by thread: Re: observeValueForKeyPath:... called too often in macOS 12
  • Next by thread: Re: observeValueForKeyPath:... called too often in macOS 12
  • Index(es):
    • Date
    • Thread