Category Archives: Programming

Algorithms, Snippets, Bugs, etc.

At last… combining the two approaches worked.

I had a problem originally getting things to work with a split screen view on the iPad. The main reason was due to the fact that I was porting over code and didn’t quite know yet how it would all … Continue reading

Posted in Programming | Comments Off on At last… combining the two approaches worked.

Delicious Library and Me

I’ve been cataloguing a lot of stuff that I have with a view to selling it. Having got the new mac I checked to see if my code for delicious library still worked, which it did. Since then I’ve realised … Continue reading

Posted in Miscellany, Programming | Tagged , | Comments Off on Delicious Library and Me

Following on from dynamic clocks.

It would also be nice to draw multiple clocks if one is ‘full’ it starts another. This example draws and returns a maximum of three clocks but always returns a 90×30 image: – (UIImage *)drawClocks:(NSNumber *)time { UIImage *image; int … Continue reading

Posted in Programming | Tagged , , , , , , | Comments Off on Following on from dynamic clocks.

Drawing little clock icons dynamically.

It’s kind of nice to be able to dynamically draw little ‘clock’ time icons. This function returns a UIImage of 30×30 pixels containing such an image: static inline float radians(double degrees) { return (degrees * M_PI) / 180; } – … Continue reading

Posted in Programming | Tagged , , , , , , | 1 Comment

Nice ish transitions from a photo thumbnail to a full screen view.

The method of animating the appearance of views in Cocoa is good and simple I think. You can use an inbuilt one, which just works, or you can start an animation block and effectively program in key frames. To make … Continue reading

Posted in Programming | Tagged , , , | Comments Off on Nice ish transitions from a photo thumbnail to a full screen view.

So so close.

Just two bugs away, probably, from having something working in its entirety. E.g. everything else is additional features rather than core functionality. Current bugs: 1 – Render of StepTableCell is outside the bounds of the cell for reasons unknown, it’s … Continue reading

Posted in Programming | Tagged , , | Comments Off on So so close.

A few inconsistencies in approach…

As I read through some of the code I’ve written I notice things I’ve done twice, unnecessarily. For example a custom table cell has a property (variable/object in normal language) called category of type Category. The table view controller to … Continue reading

Posted in Programming | Tagged | 2 Comments

A small applescript utility.

Knocked this up today as I figure it will prove it’s worth in the future. Drag and drop an image onto it and it will generate the necessary files for the various icons/artwork an iPhone/iPhone4 or iPad application, it should … Continue reading

Posted in Programming | Tagged , , , | Comments Off on A small applescript utility.

A summary of the day.

Good day.  Silly exc_bad_access bug resolved.  A macro in gdb to print the retainCount (mentioned in a previously posted link) is indeed very handy.  Spamming this through the code was also useful: NSLog(@”%@ <nameoffunction>”,self);   <— (or with another %@ … Continue reading

Posted in Games, Programming | Tagged , , , , | Comments Off on A summary of the day.

I squished a bug.

Two days chasing down a bug and the first thing to enter my mind is “I squished a bug”. Yeah I own the album and the song was stuck in my head. So…… “I Squished a Bug” an ode to … Continue reading

Posted in Music, Programming | Tagged , , , , , , , , | Comments Off on I squished a bug.