Strategy Design Pattern
sep 24,
2012
I was over in Sweden last week teaching a Java design patterns course. Having spent so much time with iOS recently, it was interesting to put my Java hat back on and talk about designing enterprise scale applications. Some of my students probably thought I was a little slow writing code during demos but I […]
Testing for Memory Warnings
aug 29,
2012
Have you ever opened up an app on your iPhone or iPad and noticed that it crashed immediately? Then it was OK when you restarted it? That’s usually because there is a bug in the way the application responds to the memory management processes in iOS. Memory Management in iOS One of the objectives of […]
URL Schemes on iOS
aug 20,
2012
The URL scheme is a useful little feature in iOS that allows unrelated applications to communicate with each other in a controlled way. One application can use a custom URL scheme registered by another to pass control to it, supplying arguments as required. Standard URL Schemes Some of the standard iOS apps have URL schemes […]
Lazy Properties
jul 30,
2012
Every language has its own idioms and when I have to learn a new language, I always find that looking at sample code and examples is a great way to learn new techniques. Something that’s very common in the sample code provided by Apple is the use of lazy properties. It’s certainly not an approach […]
Using Snippets in Xcode
jul 23,
2012
If you have done any editing of Objective-C source code in Xcode, you have probably noticed that it will sometimes give you useful templates of code to save typing. For example, if you type ”switch” into the Xcode editor window inside a method body and press return, you get something like this: Typing on the […]