Voices That Matter Seattle

February 11th, 2011

My friends at Voices That Matter are putting on another iPhone Developer’s Conference in Seattle, this April 9-10. I have had a great time speaking and attending these conferences in Boston and Philadelphia. I won’t be able to attend, because the travel would be a bit hard for me coming right on the heels of my speaking engagement at NSConference in the UK.

If you’re thinking of going to Seattle, be sure to sign up before February 25 to get discount pricing. They also gave me a coupon code to share, “SEABLOG”, that will get you an additional $100 off the discount rate, for a total price of only $395.

This App Is Your App

February 9th, 2011

One of the challenges existing Mac developers face with the Mac App Store (MAS) is whatever copy protection you have been using up until now has to be thrown out in favor of a protection scheme based on Apple’s App Store “receipts,” a tiny cryptographically signed file they place inside purchased applications that let your app confirm the authenticity of an application upon launching (and at any other time).

This leads to a conundrum if you continue to sell software directly, or offer preview beta releases for direct download. How can you offer access to these releases for customers who purchased through the MAS and thus do not have the “Registration Code” that direct-purchase customers receive? Apple provides no means of determining the identities of, or contact information for, authorized MAS customers. But even though I don’t know who these customers are, I want to treat them as first-class customers in every regard.

For me, I decided that the compromise is to provide, for those MAS customers who want it, full access to the direct-download versions of my software. Today, any customer who buys a MAS edition of my applications will find that, after running that edition at least once, they are automatically authorized to run direct-download versions of the app from that time forward.

A Recipe for Mass Authorization

How did I achieve this bit of wizardry? And more importantly, how can you, or other developers whose apps you love, achieve the same thing? There are three major code-level changes that I needed to make. I’ll discuss those changes, and some of the potentially non-obvious considerations to keep in mind while making them.

 

  1. The MAS edition must stash its receipt somewhere obvious for the direct-download edition to find it. Because both editions of my app share a common Application Support folder, I chose to store them here. Inside the Application Support folder, I create a subfolder called “App Store Receipts” that contains the pertinent receipt files for this app.

    Why a folder? Because a customer may sync or copy their App Support folder across various Macs, I chose to store each receipt keyed by the computer’s GUID, which is derived from its wired ethernet MAC address. Developers who have implemented app store authentication will be familiar with this value.

  2. The direct-download version must, in the event it is not already authorized by a standard registration code, look for secondary validation in the form of a receipt in the aforementioned location. If it finds a receipt, the same type of validation is performed on the receipt as would be performed in the MAS edition.

    You will want to apply some lenience when interpreting the validity of the receipt. For example, you probably want a receipt authorizing version “3.0” to also be considered valid for “3.0.1” or “3.0.1b1”. Similarly, if you use separate bundle IDs for your MAS and direct-download editions, you will want to consider the MAS bundle ID as valid for the direct-download version.

  3. If you used a different bundle ID for your MAS and direct-download editions, then for the sake of the users sanity and yours, you probably want to implement some kind of transparent migration of preferences from one edition to the other. You don’t want customers to have to go in and reset all their preferences when they switch, and it can be annoying as a developer as well.

    I had some preference migration code around from when I transitioned MarsEdit and Black Ink from their previous companies’ bundle IDs to mine. I reused that transition code, with a bit of careful but appropriate logic: if the other bundle ID was modified more recently than mine, then import it and replace my defaults. The same logic is applied in each edition so that whatever version you run, you’ll feel as though you’ve picked up all the latest preferences from the last time you used the app.

 

With these changes in place, I have the flexibility to offer direct-download versions of my software to any MAS customer who asks for it, or for customers who I request the assistance of in testing a pre-release bug fix. In most cases, I can just ask the customer to run the app. In the worst-case scenario, when a receipt has not yet been “stashed,” I have only to ask the customer to run the MAS edition once before trying the newer release.

Pitfalls and Downsides

This solution isn’t perfect. In particular, it brings MAS customers into the fold for direct-download software, but does nothing to soothe the existing and new direct-purchase customers who wish for access to the benefits of the MAS: sharing reviews, mass-updating purchased software, etc.

Worse, it leads to a potentially confusing situation where a customer may be running version 3.0 of an application that they direct-downloaded before Apple had approved it. When Apple does approve it and it goes live on the MAS, they are notified inside the App Store about the available update, but when it does update, it will update the previously installed MAS version, and not the direct-downloaded one. To benefit from the Red Sweater compromise, customers need to embrace the mental model that MAS and direct-download versions of the application are fundamentally different, and need to be managed and stored separately from one another.

I believe that the people this compromise serves are in general a more technically astute type of customer who will be able to embrace this difference, or will understand it with little explanation on my part. The less technical customers are not liable to be on the lookout for beta releases or “day of” releases of new software, and will happily wait until the MAS notifies them of a standard, Apple reviewed update.

 

Black Ink 1.3

February 8th, 2011

I am happy to announce that after a short, productive beta release period, Black Ink 1.3 is now available for direct download and through the Mac App Store (has been approved but may take a little while to update in the store).

  • New web puzzle sources
    • LA Times Daily & Sunday
    • Newsday
    • USA Today
    • Universal
  • Rework the Startup preferences to be more user-friendly with reopening puzzles
  • Give keyboard shortcut Cmd-K to “Check Current Letter”
  • Now includes automatic crash reporter
  • Fix a bug that caused Black Ink to hang when printing on rare occasions
  • Fix a bug that caused puzzle timer to be placed off screen edge
  • Fix a bug that could prevent puzzle solving menu items from being enabled
  • Fix a bug that prevented canceling a stalled puzzle download from working

Enjoy!

Black Ink 1.3 Beta

February 4th, 2011

The success of Black Ink on the Mac App Store has motivated me to get busy working on a number of improvements I have been planning for some time but just hadn’t found time to do.

The big deal in 1.3 is that I added support for a different format of puzzle that opens up Black Ink to a number of new sources for more solving fun.

Because I don’t have a strong, established beta testing group for Black Ink, I’m opening this up as a public beta to get any bugs ironed out before it goes public for the Mac App Store and direct-purchase customers. If you’d like to test out, just download and give it a spin!

Download Black Ink 1.3b1

Be sure to drop me a line if you run into any problems, but also if you are interested in being part of a more permanent Black Ink beta testing group. I’m going to try to get organized for future, private testing rounds.

A round-up of the changes to expect in this release:

Black Ink 1.3b1

  • New web puzzle sources
    • LA Times Daily & Sunday
    • Newsday
    • USA Today
    • Universal
  • Rework the Startup preferences to be more user-friendly with reopening puzzles
  • Give keyboard shortcut Cmd-K to “Check Current Letter”
  • Now includes automatic crash reporter
  • Fix a bug that caused Black Ink to hang when printing on rare occasions
  • Fix a bug that caused puzzle timer to be placed off screen edge
  • Fix a bug that could prevent puzzle solving menu items from being enabled
  • Fix a bug that prevented canceling a stalled puzzle download from working

Known Issues

  • Encoding issues with Newsday 2/4/11 characters
  • Documentation not updated to reflect reworked startup preferences
  • Puzzle icons in startup window get smaller if window closed and reopened
  • Newsday, USA Today, and Universal have generic icons for now

Enjoy!