news Xcode - showing a stack trace when iPhone apps crash

August 25, 2009

By default, when your iPhone app crashes xcode does not show you where exactly that crash occurred.  Generally you just get a call stack of functions with names that mean very little to most people, and are rewarded with lovely disassembly if you click on any of them.  You do get a description of the error, but as it doesn't actually tell you where it error came from it's often not that helping in finding the offending code.

Luckily there's a drop-dead simple method of getting xcode to show you the 'proper' stack trace..

  • Go to the debugger window, click the 'breakpoints' window. 
  • Double-click where it says 'double-click for symbol' and type objc_exception_throw.  This'll add a new exception whenever the objc_exception_throw function is called - e.g. when an exception is thrown.  

Now when your app inevitably crashes, you can actually see the stack trace leading to where the exception occurs. Huzzah!
Now, why on earth would that not be enabled by default?  Answers on a postcard please :-)

music The Waterfront Project - modern folk band

August 4, 2009

The Waterfront Project is a folk music project consisting of members from Pond Life and High Speed Hangover along with some other musical friends joining together with the ultimate aim of recording a folk-rock album, and having gigs and lots of fun along the way.

Here us at http://www.myspace.com/waterfrontproject

gallery Added some new Life Drawing images to gallery..

June 10, 2009

Here's the head from a picture I did during last week's life drawing class.  My technique is to do the pencil drawing in the class itself (in 15 minutes), then scan the drawing and add the colour using Photoshop.

Check out my other life drawings here: 
http://www.mightytoast.com/gallery/?level=album&id=9

news Playing Sounds & Audio in iPhone Web Pages

March 20, 2009

 

Turns out that it's possible to integrate playback of audio in a webpage so that it works on iPhone without having to use flash - which of course isn't yet available.. not even in iPhone 3.0.

 

It's pretty easy and makes use of HTML EMBED tag, in combination with a little piece of Javascript.  On desktop browsers, you can make sounds play automatically when a page is loaded, but this doesn't work on the iPhone.

 

Here's an example where a button press causes a WAV sound to play..

 

Thanks to Tim K for the Javascript bit.

music High Speed Hangover - Covers Band

August 17, 2008

I play drums in a covers band called High Speed Hangover, who cover the best cheesy party tunes from the last three decades.  I've build a website for it using the popular WordPress blog site tool.

Check out the site at http://highspeedhangover.com

First Page Previous Page Next Page Last Page 1 2 3 4 5