Minesweeper (Part 9)

Today we finally submit our Minesweeper clone to AAPL for approval. Let’s see how that goes. In the meantime, you can download the latest source code here.

Allow me to offer two words (well, “paragraphs”) of warning about the project’s default configuration (“Simulator – 3.0 | Debug”):

  1. If you execute certain perfectly legal Core Graphics code in the 3.0 Simulator, you generate a lot of very worrying memory management errors. I wrote a little bit about it here. You can ignore(!) the errors, or run against the 3.1 (or later) Simulator.
  2. In-app purchases don’t work in the Simulator at all; if you want to exercise this part of the code, you’ll need to run it on a device.

Incidentally: I wouldn’t say that implementing in-app purchases was hard, per se, but there were a lot of little things to run down. (E.g., if you don’t have a network connection, the store kit doesn’t report an error when you request product descriptions: it just never returns a result.) It took a while to get all that sorted out, but much of the resulting code should be reusable.

Continue reading

Posted in iPhone, Projects | Comments Off

Mayweather/Mosley Recap

Well, 1/12th of the fight I expected, and would have preferred to see. The second round was great: the rest, not so much. Floyd adapted, Mosley didn’t. I’d say the biggest difference between the actual fight and my expectation of it was Mosley’s non-existent jab. Mosley also looked more jittery than I expected, but that’s not too surprising: He’s a smart guy, and must have suspected he was overmatched.

Continue reading

Posted in Boxing | Comments Off

Six Word Stories: Violence

Violence, it developed, did solve something.

Posted in Six Word Stories | Comments Off

In-App Purchase

I’ve been working with in-app purchases, and would like to share a little of what I’ve found. Today I present a simple view controller that displays the contents of an in-app store. There’s a lot missing from it (e.g., you can’t see detailed descriptions of items, or, ahem, buy anything) but it does demonstrate how you might present a storefront to a user.

Continue reading

Posted in iPhone | Comments Off

Organization

Please consider three quotes:

Adam Smith:

It is not from the benevolence of the butcher, the brewer, or the baker that we expect our dinner, but from their regard of their own interest. We address ourselves not to their humanity, but to their self-love, and never talk to them of our own necessities, but of their advantage.

Donald Berwick:

I cannot believe that the individual health care consumer can enforce through choice the proper configurations of a system as massive and complex as health care. That is for leaders to do.

Saul Alinsky:

It is impossible to conceive of a world devoid of power; the only choice of concepts is between organized and unorganized power.

Smith and Berwick are on opposite sides of the choice Alinsky outlines. I am on Smith’s side. Berwick is wrong, and, as the current nominee for head of the “Centers for Medicare and Medicaid Services”, dangerous. He illustrates why leftists must not be entrusted with the responsibilities of government.

Continue reading

Posted in Jack Handy | Comments Off

Six Word Stories: Virus

John’s virus taught Roombas to escape.

Posted in Six Word Stories | Comments Off

Minesweeper (Part 8)

Today we bring our Minesweeper project almost to the point of completion. The latest version (you can download the Xcode project here) adds puzzle setup, high-score tracking, and auto-clear, along with an assortment of odds and ends needed to get the code ready for release.

Continue reading

Posted in iPhone, Projects | Comments Off

Mayweather/Mosley

Mayweather/Mosley is coming up next weekend. I’m looking forward to it; Mosley is a come-forward fighter, and I don’t think Mayweather will be able to turn it into a snorefest. Below, I present my thoughts on how this fight might go. (Short version: Bet Mosley.)

Continue reading

Posted in Boxing | Comments Off

Six Word Stories: Out

Satan called, but I was out.

Editorial note: Inspired by a true story! My caller ID reports that I missed a call from the 415 (San Francisco) area code with a “666” prefix. Spooky!

Posted in Six Word Stories | Comments Off

Minesweeper (Part 7)

Today I provide an updated Xcode project for our Minesweeper clone. This version implements a lot (but not all) of the design we covered on Monday, including all the gameplay features aside from auto-clear. You can download the project here; I discuss it, in very general terms, below.

Continue reading

Posted in iPhone, Projects | Comments Off