Re: Overriding description
Re: Overriding description
- Subject: Re: Overriding description
- From: p3consulting <email@hidden>
- Date: Tue, 15 Jul 2003 12:09:36 +0200
>
Simple enough, I've done it dozens of times. Why then can I not get it
>
to work this time?
>
>
- (NSString *) description
>
{
>
return [NSString stringWithFormat: @"location = (%f,%f,%f)", x, y,
>
z];
>
}
>
>
Is there anything wrong with this. I know it's getting called, but it
>
seems to return NULL. Any help would be great, thanks.
>
[nil description] will return nil, so are you sure the object you pass
the "description" message is not nil itself ?
Other source of the problem may be the object you pass the message to
is not of the class you think it is
Pascal Pochet
P3 Consulting
email@hidden
http://www.p3-consulting.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.