Category Archives: objective-c

[Objective-C + Cocoa] NSAutoreleasePool and Threads

If you have a multithreaded iPhone/iPad/Cocoa application, you are probably aware that for each thread you create you need to set up an auto-release pool for that thread. If you don’t do this then you’ll get some nice messages in … Continue reading

Posted in coding, objective-c | Tagged , | 1 Comment

[Objective-C + Cocoa] Object Inspection

I’m a big fan of reflection. Always have been since I was first exposed to it in Java. For those not familiar with the concept, reflection (or introspection as it is alternately called) allows one to inspect and/or access the … Continue reading

Posted in coding, objective-c | Tagged , | 3 Comments

[Objective-C + Cocoa] The Poor-man’s Multithreading

I’ve been doing a fair bit of coding in Objective-C lately, more specifically using Apple’s Cocoa API. There’s a lot to like about Objective-C as a language. Predating Java by nearly a decade, here is a reflective language that more … Continue reading

Posted in coding, concurrency, objective-c | Tagged , , | Leave a comment