Saturday, June 20, 2009

C64 for iPhone: Rejected.

After a deafening silence, I can finally talk about my little side project.  I posted my initial efforts about a year ago and after the excitement of TUAW publishing a story, I spent some more time adding a keyboard and improving the performance with dreams of an App Store release.  That is, until reality sunk in.  There is an incredible amount of work to turn a concept like this into a polished, user friendly and legal product, ready for sale.  I attempted to find who owned the Commodore 64 brand, but constantly hit dead ends.  I finally took a break from C64 and played around with new projects, like the SID player.  It has made progress, but I'll leave that for another post.

Not much happened with the emulator for some time; however, everything changed when I received an email from Brian Lyscarz, a Danish entrepreneur who is now a resident of Sweden.  It turns out he is just as passionate as I when it comes to retro, and had personally funded some initial development of a C64 emulator for the iPhone.  Fortunately (for me) this didn't go too far and Brian found me because of the initial press.  Aside from an initial phone call, we have communicated entirely via email, post and Google chat, to achieve what follows.

We concluded (having never met) that the next obvious step was to form a company dedicated to retro gaming, and Manomio LLC was born.

As the months have gone by, we've really settled into what has become a great partnership.  Essentially, I got it working and Brian had the aesthetic eye and the skill with Photoshop to make it pretty:



The next hurdle was licensing.  Fortunately, Brian knew the right people, which lead to Manomio securing an official license for the brand from Commodore Gaming and Kiloo Apc.

The final hurdle was Apple and the SDK agreement, section 3.2.2.  We contacted Apple Developer Relations in the United Kingdom and explained our approach.  In principal, we don't allow you to download arbitrary content - we'll secure the licenses and release game packs officially via the App Store.  We agree it's not ideal, but we had to start somewhere.  If Apple loosens the reins, so will we!  They were very excited by what we had built and assured us we'd be okay given we weren't directly competing with the App Store and had locked down the emulator to only installing official titles.  They also mentioned there were already other 'emulators' available, like the SID player and SC68, which actually can download content freely via the net.  This leads us to today - we've been rejected on those very grounds.  We're going to resubmit with no access to BASIC, so it simply plays games in the hope it will be perceived as just a pack of games.

Hopefully we can be noisy across the digital communication channels and perhaps Apple will change their mind.  We have our first review in too, so go check it out!

Enough talk, here it is in action on a 3G (not my new 3Gs):

Saturday, April 18, 2009

Enable -Wformat for better compile time help

Let the compiler do all the hard work, and be sure to enable the following warning:

Picture 1.png

It does more than just validate printf/scanf formatting calls, which is helpful in itself. It also validates that a sentinel is present in variadic functions. A sentinel is typically NULL or nil for the last parameter. A common place you would benefit from this is using the arrayWithObjects method of NSArray, that requires a nil for the last value.

NSArray *items = [NSArray arrayWithObjects:@"one", @"two", nil];

If the nil is absent, you're receive the following:

Picture 3.png

Friday, April 03, 2009

Small Zip / Unzip library for iPhone

I have looked with ZipArchive, which is an Objective-C compression framework; however, I ended up using Lite Zip / Unzip on codeproject as it is just two .C files. Include one for compressing ZIP files and the other for decompressing.

Saturday, March 07, 2009

XCode Tip: Generate comments in your assembler output

To make it easier to find the assembly generated when you 'Show Assembly Code', embed comments using:

asm("# your comment")

Friday, January 30, 2009

How to debug handleOpenURL

I've seen a number of questions on the Apple iPhone developer forums asking how to debug the UIApplication handleOpenURL message. I finally had a complex scenario that I needed to debug, and came up with the following solution. Note that this example has been tested using the simulator only. Firstly, you'll need to grab the two 'DebugSupport' files from my google code repository here. Include them in your project and modify your handleOpenURL message as follows:
-(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
 [DebugSupport waitForDebugger];
 ...
 // place breakpoint after the above line
}
The call to [DebugSupport waitForDebugger] shows a UIAlertView, which will wait until you confirm by clicking the OK button. You'll notice that the prompt tells you the process ID. Don't click OK yet. Return to XCode and from the Run menu, choose Attach To Process | Process ID... Enter the PID given to you from the alert box and XCode will attach and enable all the breakpoints. Obviously, remove this from production code. Enjoy.

iPhone 3.0 Wish List

I took this from a comment I made on TUAW

Here's what I'd like to see, assuming we'll also get iPhone 3.0 software update.

Hardware
  • The entire screen should be touch enabled, so the border could be used for interactivity.
  • ARM Cortex A9 (multi-core version would be a dream),
  • PowerVR SGX and
  • minimum of 256MB RAM (up from 128MB)


Software, given the above specs
  • Background applications
    • I'm wondering if this is coming rather than Apple's original 'push' solution, since we haven't seen it yet...

  • Support for cross-application communication / shared data
    • At the very minimum, this should be permitted for apps released by the same developer

  • Major innovations to Springboard, since it is becoming unwieldy on iPhones with many apps installed
    • 'spotlight' style launching would be good
    • It could be arranged in a grid pattern so you could flip left, right, up or down or diagonally. A faint arrow could show you where centre is. Pressing home would take you back to the centre screen.
    • For up to 9 screens you would be no more than 2 flips from any other screen.
    • A gesture (like pinch) could be used to zoom out the spring board, like spaces to see 4 page or further out for 6 and then 9 pages. Tap on a page to zoom back.
    • You should be able to name spaces, so you could see text on each space. e.g. 'Games', 'Financial', etc...

Sunday, January 04, 2009

Utility class for loading a UIImage without caching

I've checked in a utility class for UIImage, which adds a new category to load images without caching .  You use it as follows:

UIImage *image = [UIImage imageFromResource:@"my_image.png"];


You should only do this if there is a specific reason you do not want caching.