• 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: Using NSObjCMessageLoggingEnabled, how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSObjCMessageLoggingEnabled, how?


  • Subject: Re: Using NSObjCMessageLoggingEnabled, how?
  • From: Ken Tozier <email@hidden>
  • Date: Mon, 2 Jun 2008 17:44:11 -0400

Yes. It turns out that was exactly what was happening but I had no idea where the second registration was coming from. Using a custom "addObserver" method revealed the culprit.

On Jun 2, 2008, at 5:30 PM, Greg Guerin wrote:

Ken Tozier wrote:

I'm trying to log messages to track down a really pesky messaging bug where
a KVO observer's "observeValueForKeyPath" class is always called twice
whenever the observed object's "pageNumber" property changes. I googled
around a bit and found that you can enable message logging by enabling
"NSObjCMessageLoggingEnabled."

Is it possible you're seeing two calls to observeValueForKeyPath because
one observer instance has actually been registered twice?


  -- GG


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40comcast.net


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Using NSObjCMessageLoggingEnabled, how? (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: jump to definition broken for frameworks only
  • Next by Date: Re: Permissions in Interface Builder
  • Previous by thread: Re: Using NSObjCMessageLoggingEnabled, how?
  • Next by thread: Re: How to rename project.
  • Index(es):
    • Date
    • Thread