iOS and Mac Development Link Roundup: June 2011

Here is my summary of the past month in links:

WWDC 2011

WWDC is over and the session videos are out. OS X Lion has lots of cool new features, though Mac developers have known about most of them for a while. The big WWDC news for developers: tons of new stuff in iOS 5 and, of course, iCloud, designed to become the next game changer. Gone is the digital hub, the Mac demoted to just another device.

Apple is betting on a vision that is different from Google’s, a world where the data lives in the cloud but access to it is hidden behind native apps. You don’t need a web browser to get the impression that your data is always there for you, no matter where you are and which device you use. For iCloud, Mac OS and iOS are equals. The cloud just works, to the extent that you shouldn’t even notice that it is there. Good news for Cocoa developers.

Another learning: Objective-C is very much alive and kicking. Apple seems totally committed to the language, and the switch to LLVM is a huge thing for the future improvement of the language. More good news for Cocoa developers.

Programming

Articles

  • Matt Gallagher explains a weak point in Objective-C’s weak typing typing: methods with the same selector but different argument or return types can lead to the wrong method being selected at runtime.

  • Mike Ash illustrates the similarities and differences between Objective-C blocks to C++0x lambdas.

  • In My Fear of Middleware, Noel Llopis makes a great case against using frameworks like Cocos2D in game development. If you have an excellent grasp of the language and the technology you’re working with, all-encompassing libraries can sometimes hinder you more than they help. On the other hand, a framework like Cocos2D can save you tons of work if you’re a beginner. It all depends on the situtation.

  • David Singleton: Why mobile apps suck when you’re mobile. Good explanation why TCP connections can suck so badly when used over a bad mobile link. Includes suggestions to improve your own networking code.

  • Kelly Sommers turned her Continuous Client concept I mentioned last month into an impressive cross-platform demo. No matter whether your immediate goal is something similar or not, a messaging-based approach to component design in your app seems like a good idea.

  • Guy English takes a close look at Apple’s Push Notification technology, the system that enables much of iCloud, and the competitive advantage such a high-capacity, OS-level service potentially gives them:

    The thing is this, and it’s an important thing — always bet on the technologies that scale. … Apple is now betting that multiple applications maintaining their own connections to disparate servers will end up performing poorly on mobile devices. I believe they’re right.

Components and Libraries

  • Dave DeLong wrote DDMathParser, an extensible parser for mathematical expressions.

  • Another interesting parsing library is Tom Davie’s CoreParse. It allows you to write your own tokenizer and parser with very little effort.

  • The guys at enormego wrote EGOTextView, a rich text editor alternative for UITextView. Unfortunately, the included demo app doesn’t really show off any rich text formatting features. The code looks good, though.

  • Jason Morrissey’s JMTabView is a very stylish and good-looking tab view alternative. Rendered entirely using Core Graphics.

  • Jim Dovey published AQAppStateMachine, a simple-to-use application state machine, designed to assist the development of applications with some fairly intricate state requirements.

  • SBTableAlert by Simon Blommegård: a UIAlertView containing a UITableView, similar to what iOS uses in the Maps app when you search for a location and there are multiple matches.

  • The guys at Gowalla published AFNetworking, a nice-looking lightweight networking library based on NSOperation and blocks.

  • NPReachability by Nick Paulson: a blocks-based reachability implementation.

  • The Cocos2D community set up a repository of high-quality third party extensions for Cocos2D. Extensions include useful components such as scrollable menus, a slider control, a video player and much more.

  • Appledoc is an older project that made the rounds on Twitter this month. It looks like a great tool to create nice-looking Objective-C API documentation that matches Apple’s own style.

Tutorials

Design

  • Noel Llopis and Miguel Ángel Friginal, developers of the great iPad game Casey’s Contraptions, wrote a detailed post-launch analysis. Great read. Make sure to read the comments, too. PocketGamer has another good interview with the two about their game.

  • Kyle Neath shares the design process of the new GitHub app for Mac. It is an interesting account from a newcomer to both designing and developing Cocoa apps that helps to illustrate some of the weak points of AppKit and a lot of the cruft that has accumulated in AppKit over the years. Not all of his criticism is justified in my opinion. Interface Builder pretty useless? Come on. And:

    Along those same lines, I think that Cocoa is dying for a framework. Something that weighs on the simple defaults side rather than complex code generation side.

    What does this even mean? Cocoa is the framework. And the simple defaults are (among other things) the standard UI controls. You can build your own ff you don’t want to use the defaults, but you will have to work harder.

  • Not specifically app-related: the awesome Kathy Sierra points out what all our design should boil down to: Just make people better at something they want to be better at.

App Store

Apple backpedaled on the strict in-app subscription rules they introduced in February. There is no longer a requirement that external content be offered through in-app purchase at all and at the same price or less than outside an app. This is a very welcome change before the June 30 deadline expired that Apple had set developers to comply with the rules.

With iA Writer for Mac as the example, Dan Wineman reminds us of a useful lesson when pricing our own apps: don’t try to commoditize your own product just because Apple does something similar. Apple is playing a different game. Oliver Reichenstein from Information Architects expands on this and compares the performance of iA Writer on the Mac App Store to the iOS App Store. Key finding: the two ecosystems are two very different beasts.

Martin Schultz shares sales numbers of his game Hard Rock Racing on the Mac App Store. Even after being featured by Apple and reaching the number 3 spot of paid games in the US, it sold only 743 copies on its best day.

David Heinemeier Hansson argues that ten apps is all he needs; competitors shouldn’t need a massive App Store to compete with Apple if they do the basic apps that everybody uses really well. David Barnard has a very good reply with The Eleventh App: every single user might only use a small number of apps but at least some of these apps will be different from person to person.

Competition

  • Battleheart developers Mika Mobile offer an interesting comparison of their app’s performance on the iOS App Store and the Android Market: Part 1, Part 2. Monetization on iOS is still a lot stronger but Android seems to be catching up, especially considering that they found it to be easier to get high into the top charts on the Android Market.

  • David Barnard: Winning the Mobile Platform Race.

Community

  • Marcus Zarra sees a growing trend in the Cocoa developer community to unfairly criticize the work of others without knowledge of or respect for both the people involved and the constraints projects are under: Why So Serious? Marcus’s specific example is the bashing that the The Daily app (where he was involved in the development) received by many.

    Gone is the sharing and the live/let live attitude that once made this community so great. Quite a few members are just full of piss and vinegar. … What saddens me is this new desire to attack things that are either new or just in the media. Does the application suck? Maybe. But to curse the developers who wrote it? Not cool.

    I can’t say I agree with him but this is definitely something everybody should look out for.

  • Brent Simmons sold NetNewsWire, one of the best-known indie Mac and iOS apps. In a long interview on Daring Fireball, Brent and Black Pixel’s Daniel Pasco discuss the reasons and NetNewsWire’s future. Very insightful.

  • The Appsterdam community officially kicked off their project with a big launch event. I hope they can keep up the enthusiasm and find many imatators in other cities around the world. Anything that improves the community spirit is good for all of us.

Legal

Patents are on their best way to become a recurring topic here.

After Lodsys’s decision to sue some app developers over infringement, Apple filed a motion to intervene in the proceedings on behalf of their developers. Meanwhile, several companies decided to file lawsuits against Lodsys (one, two, three, four) with the aim of invalidating all four Lodsys patents, in response to which Lodsys sued another ten companies (bigger names this time), possibly to avoid more pre-emptive countersuits. Florian Mueller of FOSS Patents covered all this in admirable detail. We haven’t heard any news from the targeted app developers lately. It is probably safe to say that they have been in discussion with Apple and agreed to not talk publicly about it. Lodsys has apparently asked for time until July 27, 2011, to answer Apple’s motion to intervene.

Macrosolve, the other company that is currently targeting app developers, sued another 20 companies over a patent reagrding electronic forms.

What does this mean for developers? Craig Grannell offers a grim outlook:

Dear developers: in future, make sure you check every aspect of everything you do against every patent that has ever existed, ever.

Meanwhile, it seems that all big phone companies are happily suing each other. Who benefits? Apple and Nokia settled their patent dispute last month with the probable result that Apple pays Nokia a per-iPhone royalty fee. Sounds bad for Apple but given that competitors are likely to infringe on the same patents it might actually be a good settlement.

To top it all off, an unlikely consortium of Apple, Microsoft and Sony (among others) just paid $4.5 billion(!) for Nortel’s patent portfolio. Crazy!

The more I read about this, the more I am convinced that the world would be a much better place if all patents were abolished. The only people profiting from this bullshit are the lawyers.