Re: "Tricks" of the "Trade"
Re: "Tricks" of the "Trade"
- Subject: Re: "Tricks" of the "Trade"
- From: David P Henderson <email@hidden>
- Date: Thu, 7 Jun 2001 11:25:20 -0400
I sent this to Georg Tuparev by mistake as it was intended for the list.
My apologies Georg.
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
--
Chaos Assembly Werks
"Imagination is more important than knowledge."
- Albert Einstein