Re: Multiple Observations
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