Objective-C: NSLog () on C struct

Thursday, October 29, 2009

Syntax NSLog (@"%@", ...) works and is used to obtain information about objects, but does not work on C data types like struct CGRect or CGPoint, for example. To realize NSLog (@"%@", ...), also on struct type C can rely on conversion functions as NSStringFromCGRect () or NSStringFromCGPoint: PLAIN TEXT Objective-C: CGrect mioRect = (CGRect) (10, 20,30,40); CGPoint mioPoint [...]

How to delete NSLog () from source XCode

Friday, June 26, 2009

NSLog () is a useful function during the early stages of a project for testing and debugging an application for Apple iPhone, or, more generally, in XCode environment. Being just a function, just like the others, his presence will be felt even when you release (release) our executable. Then becomes necessary to remove, [...]

Actionscript trace, Objective-C NSLog ()

Thursday, June 18, 2009

Taking up the post from ActionScript to Objective-C (where you compare the code and syntax Actionscript and Objective-C), Actionscript, we have the convenient trace () function, used for debugging applications. This function emits an output on the console development environment Adobe Flash. It is used primarily in the stages of development and testing of [...]