On Jun 14, 2013, at 13:06 , Gordon Apple <g...@ed4u.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to