Choices

In my Fightcard application, I had to implement a lot of “picker” screens – screens that essentially let the user select one of a list of options, much as a drop-down does in a conventional GUI. Since the behavior of all these screens was so similar, I opted to create a common ChoiceMenu class. I now present it for your consideration.

Continue reading

Posted in iPhone | Comments Off

Snark

Today, a little nastiness: Without naming names, let me just say that when a man precedes his remarks on a topic with a (supposedly) awe-inspiring account of the reading he’s done on that topic, you can expect that his comments will be at best banal, at worst insane.

The best course of action is to nod politely, and think about baseball.

Posted in Jack Handy | Comments Off

Feynman

Here’s something to pass the time; 12 videos of Richard Feynman explaining things.

Diverting, informative, and entertaining.

Posted in Jack Handy | Comments Off

Location

holesToday, a quick guide through basic location services on the iPhone 3G (i.e. I’m not handling heading information here.) I run through a quick overview of the steps involved in building a basic location-aware app, and provide a complete Xcode project for your perusal.

Continue reading

Posted in iPhone | Comments Off

New App: Fightcard

I’m pleased to announce that Apple has approved my very first “real” iPhone application: Fightcard. This app implements a boxing scorecard (also suitable, I guess, for MMA on the 10-point-must system) that allows you to systematically and properly score a fight. With all the controversy this year (e.g. Cotto-Clottey and Malignaggi-Diaz), it’s a better time than ever to start scoring the fights yourself.

Fightcard permanently records your round-by-round scores for all fights. Rounds are scored on:

  • Clean, Effective Punching
  • Defense
  • Ring Generalship
  • Effective Aggression
  • Knockdowns
  • Point Deductions

Fightcard offers full support for all stoppage scenarios: KOs, TKOs, No Decisions, Technical Decisions, etc. You should buy a copy right now.

Continue reading

Posted in iPhone | Comments Off

Addressbookery

The iPhone makes the database underlying it’s built-in Contacts application available through a framework. This is handy, for two reasons:

  • If you want to let the user contact people from inside your app, it’s a good idea to make it easy for the user to search his address book.
  • If your app stores contact information, it’s a good idea to store it (when possible) in the main address book, which is backed up, and possibly synchronized with the address books in other applications.

The framework’s API is pretty simple, but I want to mention a few non-ovious aspects of it, as well as one bug, that I encountered while working with groups.

Continue reading

Posted in iPhone | Comments Off

Classy

I mentioned Mark Webber before, after he won his first F1 race. Yesterday he had a far more dismal result, but I thought his post-race comments showed a lot of class, and are worthy of remark:

The long and short of it was that I wasn’t quick enough today – it was a tough race. I’ve been struggling all weekend and I think I got the result I deserved, which was no points, unfortunately. We were a little bit unlucky around the pit-stops, with Lewis (Hamilton) coming back out in front, but that’s the way it goes.

An admirable example of forthrightness, I think.

Posted in Jack Handy | Comments Off

Technique

From James Bowman’s Inglourious Basterds (sp?) review:

Continue reading

Posted in Jack Handy | Comments Off

Timing (Clipping)

We’ve been talking about some Core Graphics trickery recently, related either to fancy gradients used to create shiny buttons, or complicated clipping. I wanted to take a moment to time some of this stuff out on the iPhone, and see if there were any performance implications. There don’t seem to be.

Continue reading

Posted in iPhone | Comments Off

Hollow Clipping Redux

holesI want to revisit Tuesday’s discussion of clipping; when I wrote that post I was laboring under certain misconceptions related to Core Graphics paths, which I would like to discuss. As a consequence of correcting these misconceptions, I can see that Core Graphics clipping is much easier to work with than I had supposed.

Continue reading

Posted in iPhone | Comments Off