• 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: Multiple Observations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Observations


  • Subject: Re: Multiple Observations
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 14 Jun 2013 13:31:45 -0700

On Jun 14, 2013, at 13:06 , Gordon Apple <email@hidden> wrote:

> ³currentPath² property in doc gets set once.  Observation gets dinged about
> 200 times.  Removing the ³reloadData² didn¹t affect this.  Same observer in
> another file gets dinged once, like it should.  Stack trace always leads
> back to where "currentPath" is set in doc.  Any theories on what could cause
> this observer to have diarrhea?

If the stack trace indicates that the observation is triggered by the "currentPath" setter, then you're looking for your bug in the wrong place. The problem is (prima facie) that the setter is being invoked multiple times. The cause is further up the call stack.

BTW, I hope your real code isn't (a) using a nil context and (b) failing the check the context in the observation method.

_______________________________________________

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


  • Follow-Ups:
    • Re: Multiple Observations
      • From: Gordon Apple <email@hidden>
References: 
 >Multiple Observations (From: Gordon Apple <email@hidden>)

  • Prev by Date: Multiple Observations
  • Next by Date: Re: Multiple Observations
  • Previous by thread: Multiple Observations
  • Next by thread: Re: Multiple Observations
  • Index(es):
    • Date
    • Thread