gnu3dkit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu3dkit-dev] G3DSphere -wrapPoint: and NSLog usage


From: Philippe C . D . Robert
Subject: Re: [Gnu3dkit-dev] G3DSphere -wrapPoint: and NSLog usage
Date: Tue, 22 Oct 2002 07:37:42 +0200

On Monday, October 21, 2002, at 10:38  Uhr, Brent Gulanowski wrote:

This method ends with the following NSLog() call:

    NSLog(@"<%@ %x> distance %f > radius %f - ignoring",dist,_radius);

The first two format specifiers appear to have no associated values. Is this meant to preface the output with the class and pointer value? That would require:

NSLog(@"<%@ %x> distance %f > radius %f - ignoring",self, (void *)self, dist,_radius);

however I wanted to clarify the purpose.

Yes, this should be the case ...sigh You see, the ObjC classes in the GK are rarely used and test cases are not really available...:-(

If you find such issues by writing little test apps, please sed them to me or submit them directly (into the Testing dir)!

I'd also like to bring up the NSLog() usage guidelines, or lack of them. Shall we reserve them for debug, and create a debug flag to wrap around debug code like logging?

For 0.4 I planned to remove NSLog() calls and introduce a special print command which prints warnings, errors and so on depending on a debug level which can be specified via the shell. What do you think?

-Phil
--
Philippe C.D. Robert
http://www.nice.ch/~phip





reply via email to

[Prev in Thread] Current Thread [Next in Thread]