Messaging Nil
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