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

Using NSObjCMessageLoggingEnabled, how?


  • Subject: Using NSObjCMessageLoggingEnabled, how?
  • From: Ken Tozier <email@hidden>
  • Date: Mon, 2 Jun 2008 05:25:32 -0400

Hi

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."

Further googling led me to tech note "tn2124" which tells you can "set the environment variable" (with no examples of HOW to set it of course) and a blog post that says to set it like this:

export NSObjCMessageLoggingEnabled=YES

But when I do that, I get the compile errors:

expected `template' before 'NSObjCMessageLoggingEnabled'
error: expected constructor, destructor, or type conversion before '=' token


How and where should I set this variable?

Thanks for any help

Ken
_______________________________________________
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


  • Follow-Ups:
    • Re: Using NSObjCMessageLoggingEnabled, how?
      • From: email@hidden
    • Re: Using NSObjCMessageLoggingEnabled, how?
      • From: "Jonathan del Strother" <email@hidden>
  • Prev by Date: Re: Xcode now defaults to use C99 - so what's C99?
  • Next by Date: Re: Using NSObjCMessageLoggingEnabled, how?
  • Previous by thread: SOLVED: Programatically manipulating an xcdatamodel package?
  • Next by thread: Re: Using NSObjCMessageLoggingEnabled, how?
  • Index(es):
    • Date
    • Thread