Re: "Tricks" of the "Trade"
Re: "Tricks" of the "Trade"
- Subject: Re: "Tricks" of the "Trade"
- From: Cyril Godefroy <email@hidden>
- Date: Thu, 7 Jun 2001 20:46:10 +0200
Nice tip!
Are there more directions than just -description ? Or do you have
examples?
Do you know if java-cocoa also uses this description method or relies on
pure java stuff?
On Thursday, June 7, 2001, at 05:25 PM, David P Henderson wrote:
Here is another tip for debugging your custom objects. Implement the
-description method for your classes as this is what both NSLog(@"%@",
myObject) and (gdb) po myObject use when printing objects. If you don't
implement the description method, you tend to get really help output
like <MyClass : address> which can be useful but doesn't expose the
current state of your object.
Dave
--
Cyril Godefroy
homepage.mac.com/cgodefroy