I’m lazy – really lazy. So when I decided to create a free version of Converted, my first thought was: “How do I set this up so building the two versions and keeping them in sync requires no extra effort?”.
Since I’m no Xcode expert, it required some deliberation (and digging), but eventually I came up with a solution that fulfilled these requirements:
The solution hinges upon simply using 2 different Info.plist files. Apart from some Apple-specified keys that have to be set in each file, I also added (amongst others) a key for a boolean that controls the version (eg. XXIsLite). Within the code, the different functionality between the 2 versions is controlled by observing that boolean value.
Now normally, this solution is A Very Bad Idea™: a sneaky user of the trial version could just open up the bundle, change the key and gain access to the full version. On the iPhone however the bundles are signed, so this isn’t possible (I’m obviously discounting jailbroken iPhones that bypass the codesigning – anyone who goes to that much trouble to save a couple bucks is beyond help).
So here’s the process I followed, more or less:
When you’re done, all you have to do to build either version is simply set the active target and build. This way, you can release updates for both the full and trial version with no extra effort at all!
Tip: when directing to the App Store, replace ‘itunes’ in the link with ‘phobos’; this will send the user directly to the App Store, without first launching Mobile Safari. For example,
http://itunes.apple.com/WebObjects/MZStore.woa/...
will first launch Mobile Safari and then redirect to the App Store, while
http://phobos.apple.com/WebObjects/MZStore.woa/...
will open the App Store immediately.
Despite the Palm Pre being the biggest news to come out of CES, I hadn’t really given it much attention, apart from the occasional headline or photo. I mean, it’s Palm, nothing good has come out from there in years!
And then I watched the CES Pre introduction video (here), and I have to say it: Wow. Sure, the device might be clunky, the battery life is uncertain, animations left a bit to be desired, and 3rd-party app development is something of a question mark, but what blew me away was how the Pre just nails the workflow. Everything is connected into one seamless experience, from messaging to the internet to notifications. Jumping from one activity to the next is effortless, and the information is always there.
It’s obvious that Palm went back to square one and threw away absolutely everything: not only their own technology, but also every preconception about how a mobile device should work. The Pre redefines the mobile workflow in such a way that it makes the iPhone look as archaic in design as the iPhone did its predecessors. This is the way a “personal digital assistant” should work!
It borrows heavily from the iPhone in some areas, like the device button layout, or the scrolling and zooming gestures, but then leaps forward and disposes of all the traditional mobile clutter. The gesture area, the ‘Card Deck’ concept, Synergy, and above all, the inobtrusive notification system shift the focus from managing applications to flowing through activities. In some cases during the demo, it wasn’t even clear where one application ended and another started: they were all seamlessly inter-connected.
Granted, these were just some of Palm’s first-party apps; it remains to be seen how well the third-party ones fit into the experience. But with Apple’s comparatively weak push notification system still MIA, Palm’s bold new design looks very promising indeed.
It also remains to be seen if Apple will be able to match or surpass the innovations found in the Pre; the iPhone is due for a refresh around the same time the Pre will be available. One thing’s for sure, however: competition is never a bad thing.
Will I buy a Pre? Probably not; it’s not even going to be available outside the US for quite a while anyway (due to EVDO), not to mention I’d be loath to go back to carrying a stand-alone iPod.
But it’s the first true innovation in the mobile space since Macworld 2007, and that’s exciting. Apple, your move.
This was definitely a pleasant surprise: after only 5 days in review, I got the email saying that Converted has changed status to “Ready for Sale”. I was expecting it to take at least a couple of weeks, especially since the enrollment process was so frustratingly long.
As happy as I am, however, I do feel sorry for the person(s) at Apple working on a Sunday…
The thing that struck me most while working on the iPhone was how limited the resources actually are, something that isn’t (and shouldn’t be) obvious to the user. Going from the simulator to the actual device can be really jarring, because animations that seemed butter-smooth suddenly become a slideshow.
It can be very frustrating to go back to the code and try to figure out just what the issue is, so here are a few things to keep in mind while coding, performance-wise:
With most performance concerns, the common underlying issue is object allocation. Preloading definitely helps, but go too far and you start to bump your head against the memory ceiling. In the end, you want to balance object allocation and definitely use didReceiveMemoryWarning to clear out unused objects.
Overall however, I really liked working on the iPhone: it forces you to go back to the basics and come up with creative solutions: elegant coding is always better than the sledgehammer approach!