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 23:10:46 -0400
On Thursday, June 7, 2001, at 02:46 , Cyril Godefroy wrote:
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?
-description is in the NSObject protocol.
- (NSString *)description;
Returns a textual representation of the receiver. In other words, write
your description method to return information about your object which
will be useful to you in debugging your object. Some ideas, return a
string describing the state of your object ie, the values of its ivars.
I know nothing about cocoa-java and how that works, so I'll that
commentary to someone who does.
Dave
--
Chaos Assembly Werks
"Nothing is too good to be true, except, perhaps, the morality of a
bishop."
- Israel Zangwill