Calendar
Author Archives: Drago Ružman
Tracing Zombie objects in Objective C
If an object gets deallocated too early, other objects still might have references to it and accessing it will lead to crash. Enabling Zombie objects will prevent crashes because objects are never actually deallocated and we’ll get an exception if we try to access such an object. But figuring out which object is causing trouble is just smaller part of the job. We need to find out where is the extra release (or missing retain) that is causing troubles. Read more
Leave a comment
Posted in Blog
Using Lambda Expressions in C++0x
C++0x specification is finally approved by ISO and the latest compilers now support most of the specification without too many bugs. One of many new features introduced is support for lambda expressions. Lambda expressions are anonymous functions that maintain state and can access variables from the enclosing scope. Well known and often used in scripting languages, they were not available in C++ until now. Read more
Leave a comment
Posted in Blog
Debugging Objective C code
Xcode development environment is integrated with GDB (GNU Debugger), a cross-platform debugger supporting many languages including C/C++, Fortran and Objective C. Xcode provides user interface for tasks as managing breakpoints or inspecting variables. For all advanced tasks there is the GDB command line. Command line provides commands for controlling all aspects of program execution and data manipulation.
Read more
Leave a comment
Posted in Blog, iOS
Rendering OpenGL content in a Navigation-based iPhone application
XCode’s project wizard gives us templates for creating Navigation-based application and OpenGL-based applications. But why wouldn’t we want to have both – an OpenGL rendered view inside the Navigation-based application? We can subclass the UIView class, modify it to support OpenGL rendering and then use it as a regular view in our application.
Read more
Leave a comment
Posted in Blog, iOS