Posts

Showing posts with the label Objective C

Collect your own Garbage! (Objective C iOS platform)

I am my own garbage collector. I have to do it both in my house and when developing in Objective C (iOS platform) (seems like i can't escape this at work and home). I have created a prototype of an iPad application and i have to crash and learn Objective C.I have a strong background in Java which pampers developers with its automatic garbage collection even though you can force garbage collection in Java rest assured that it is there in the background. It is whole different story for Objective C for the iOS platform. This is probably one of the reasons why Java is successful among the language that gets its DNA from the C, C++ language. Object Initializer In Java you use the "new" keyword to create Objects. One step and your finish. In Objective C it is a two step operation you have to allocate and initialize ("alloc" and "init" respectively). The "alloc" makes the space in the heap for class' instance variables. The "init" in