Skip to content
Ilho Ahn edited this page Nov 19, 2013 · 4 revisions

##Summary To Avoid 'NSLog', Use some log methods as 'debug:.. , errorRuntime…, notImplResuiredMethod.., needDelegate' Those Methods help you app have a uniformed log And Warnings.

##Normal Debugging Using 'NSLog' too much is not pretty. Instead 'NSLog', You can use these methods to debug. (Just It was used to check temporally)

+ (void) debug:(NSString*) text;

Print text

+ (void) debugKey:(NSString*)key andVal:(NSObject*) value;

Print Object with key

+ (void) debugCheckIsUsedMethod: (MINTKIT_DEBUG_METHOD_TYPE) methodName;

Checking if method is used.

##Error handelling:Just loging You should pass constant 'MINTKIT_DEBUG_METHOD' to 'methodName'. It pass your class to TestKit.

RunTime Error

+ (void) errorRuntime:(MINTKIT_DEBUG_METHOD_TYPE) methodName;

+ (void) errorRuntime:(MINTKIT_DEBUG_METHOD_TYPE) methodName code:(NSString*) code;

+ (void) errorRuntime:(MINTKIT_DEBUG_METHOD_TYPE) methodName code:(NSString*) code reason:(NSString*) reason;

+ (void) errorRuntime:(MINTKIT_DEBUG_METHOD_TYPE) methodName code:(NSString*) code reason:(NSString*) reason error:(NSError*) errorObj;

  [TestKit errorRuntime:MINTKIT_DEBUG_METHOD];

OOP Class or method warnings

You could use to warn on class using delegate or Child Class. Warning help you to implement class and have a missing functions.

+ (void) notImplRequiredMthod: (MINTKIT_DEBUG_METHOD_TYPE) methodName;

A required method is not implemented by supperclass or subclass. Stop app.

+ (void) notImplOptionalMthod: (MINTKIT_DEBUG_METHOD_TYPE) methodName;

A optional method is not implemented by supperclass or subclass. Just warning.

+ (void) methodisDeprecated: (MINTKIT_DEBUG_METHOD_TYPE) methodName moveTo:(NSString*) newMethodName;

Called method is deprecated. Just warning.

+ (void) methodNoUse: (MINTKIT_DEBUG_METHOD_TYPE) methodName;

No use this method

Version

Version 0.0.1 Build 61 Release 1