Mike Sollami

View Original

The Ultimate Print Statement

Some of the most useful functions of the Foundation classes in Cocoa that are not often well known are the functions that convert from non-objects to NSString.  Vincent Gable extended code from Dave Dribin's blog post to create a function that prints an expression and its evaluation, no matter the type. This macro is a must-have for your Objective-C/C++ debugging toolkit, and replaces all print statements.

See this content in the original post