Friday, May 29, 2009

iPhone game links

I have been sent a few iPhone game related links recently.
  • John Carmack on Doom Classic for the iPhone.
  • Wired article on ngmoco and the effect the App Store has on the traditional gaming business model.

Saturday, May 16, 2009

Ownership and memory

From the Apple Developer Connection this section on Object Ownership and Disposal is a must read for new developers.

Thursday, May 14, 2009

Cannot use object as a parameter to a method

I was helping someone with a project that was getting a bizarre error message from XCode. The message was Error: Cannot use object as a parameter to a method.

This was some what misleading as the error really referred to what was being returned from the method.

- (NSString)formatPrice:(NSNumber *)priceNumber

The problem was the leading (NSString), which was a typo that should have been (NSString *). Once that change was made, the code compiled and ran correctly.