Word of the Day

Posted 2010.11.07 15.09 in Pointless Blather by Stephanie

Embiggening your vocabumalary!

Spontaneous Auto-Defenestration

Definition: The event in which a person or thing suddenly ejects himself / herself / itself out through a window.

(Yes, I know it’s a phrase rather than a word. It’s more fun this way.)

Whine and Cheeze

Posted 2010.11.07 9.17 in Computers/Internet/Technology, iPhone by Stephanie

I’ve recently gone back to doing some iPhone programming. Back in April 2009, I had a list of features I wanted to add to one of my apps, and here it is, a mere year and a half later, and I’ve actually done it.

Quite a lot has changed since then, of course. The state of the art back then was iPhone OS 2.x, with OS 3 just-around-the-corner. Now we’re at 4.1, and 4.2 is coming in November. The tools have all changed too; I’ve lost track of how many times the XCode development tools have been upgraded.

So the first big challenge for me was to re-learn how to actually do the iPhone programming, and then to get my ‘antiquated’ project sources up-to-date so they’d work with the current dev tools. Then after all that, I could finally start with the actual enhancements.

The current XCode tools let me develop for iOS 4.1 (for the iPhone and iPod Touch) and iOS 3.2.x for the iPad. They also let me select a deployment target ‘as far back as’ iOS 3.0. The reason for this is so that folks who aren’t using the very-latest OS could still use my app. Personally I think it’s important to include backwards compatibility. On the one hand, upgrading to the latest OS is free and typically it is highly recommended, but some people simply don’t want to, or don’t feel the need. Or in the case of the 1st-gen iPhones, they simply can not do it — Apple has dropped support for the original iPhone; the latest it can run is iOS 3.x

So, I build my app using the 4.1 tools and specify that it will deploy for 3.x on upwards. In the places where it uses 4.x-only functions, I put those functions in a conditional branch so they won’t cause a crash or anything on the 3.x devices.

And at last, here we find the whine…

Read more »