• 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
Messaging Nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Messaging Nil


  • Subject: Messaging Nil
  • From: Bill Bumgarner <email@hidden>
  • Date: Thu, 3 Jan 2008 09:02:09 -0800

If anyone is interested, I wrote up a set of weblog posts documenting a couple of different non-gdb methods of figuring out what methods are being invoked on nil (which, regardless of your opinion of "nil eats messages" as a feature or weakness of the language, unexpectedly nil objects can be a major pain in the butt to debug).

A hack to log method invocations:

http://www.friday.com/bbum/2008/01/01/objective-c-a-hack-to-log-all-methods/

Expanding the hack into a runtime centric way of logging messages to nil:

http://www.friday.com/bbum/2008/01/02/objective-c-logging-messages-to-nil/

Using dtrace to analyze messages to nil:

http://www.friday.com/bbum/2008/01/03/objective-c-using-dtrace-to-trace-messages-to-nil/

b.bum
_______________________________________________

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


  • Prev by Date: Re: Correctly Subclassing NSTableHeaderCell?
  • Next by Date: NSRect to carbon Rect conversion
  • Previous by thread: Re: NSRulerView Fast Scrolling Issues
  • Next by thread: NSRect to carbon Rect conversion
  • Index(es):
    • Date
    • Thread