Tag Archives: cocoa
Objective-C memory management
With Automatic Reference Counting (ARC) coming out soon, you could argue this post is coming almost too late. But there’s a lot of confusion over this, and I don’t think ARC will help much if you don’t understand the why … Continue reading
You can annotate your sources for better clang results. Best use is probably to specify that certain parameters to your functions can’t be nil/null. (via Peter Hosey on Twitter.)
Dave Dribin (now of Apple): Fun with C99 Syntax. From May 2010, but I missed it then: C99 offers a better syntax than NSMakeRect.
Martin Pilkington (Code Collector Pro) on Objective-C 2.2 features. He covers the code reduction features of the new runtime. These are coming to “modern” Apple runtimes, meaning 64-bit Mac and iPhone.
Cocoa With Love (Matt Gallagher): Memory and thread-safe custom property methods
Matt Gallagher (Cocoa with Love): Safe, threaded design and inter-thread communication
Matt Gallagher (Cocoa with Love): Control and configuration of applications through Info.plist. I hadn’t heard of UIRequiresPersistentWiFi before, so this will be helpful to me.
Matt Gallagher: Rules to avoid retain cycles
I knew about Quartz Debug.app , but hadn’t heard of NSShowAllDrawing. Sounds more practical.
NSURL synchronous requests
Can’t verify this yet, but something I want to investigate later: Chris Parker (who “works for a fruit company in Cupertino”) via Twitter: Hey iPhone devs: sending synchronous requests via NSURL on the main thread is a good way to … Continue reading