Defines | |
| #define | CorkLog(FORMAT_AND_VARARGS...) CorkLog_(FORMAT_AND_VARARGS) |
| Write a formatted string to the console. | |
| #define | CorkLogv(FORMAT, ARGLIST) CorkLogv_(FORMAT, ARGLIST) |
| Write a formatted string to the console. | |
| #define | CorkLogObject(ANOBJECT) CorkLog(@"%@", [(ANOBJECT) description]) |
| Write the description of an Objective-C object to the console. | |
Variables | |
| NSString *const | CorkDidAppendStringToLogNotification |
The functions in the printf() family are intentionally not poisoned, but you should still avoid using any of them with Corkboard as they don't route through Corkboard's debugging and display systems.
| #define CorkLog | ( | FORMAT_AND_VARARGS... | ) | CorkLog_(FORMAT_AND_VARARGS) |
Write a formatted string to the console.
CorkLog() is implemented as a macro instead of a function so that it can retrieve information about the calling function and environment for display on the console.
After writing the string to the console, this function posts the CorkDidAppendStringToLogNotification notification to the default notification center. The string is the notification's object.
| #define CorkLogObject | ( | ANOBJECT | ) | CorkLog(@"%@", [(ANOBJECT) description]) |
Write the description of an Objective-C object to the console.
After writing the string to the console, this function posts the CorkDidAppendStringToLogNotification notification to the default notification center. The string is the notification's object.
| #define CorkLogv | ( | FORMAT, | |||
| ARGLIST | ) | CorkLogv_(FORMAT, ARGLIST) |
Write a formatted string to the console.
CorkLogv() is implemented as a macro instead of a function so that it can retrieve information about the calling function and environment for display on the console.
After writing the string to the console, this function posts the CorkDidAppendStringToLogNotification notification to the default notification center. The string is the notification's object.
| NSString* const CorkDidAppendStringToLogNotification |
This notification is posted whenever CorkLog(), CorkLogv(), or CorkLogObject() is called. Its object is the formatted string that was logged. Its userInfo dictionary includes values for the file, line, and function (both mangled and pretty) where the logging call was made, under keys equivalent to their C constant names (__FILE__, __LINE__, __func__, and __PRETTY_FUNCTION__ respectively.)
CorkCore Framework Reference © 2008–2009 Ayluro, Inc. All rights reserved. Questions or comments? Contact us.