Author Archives: Adam Preble
Tip of the Hat
I saw (via Kottke) that Steve Carrell says he will be leaving The Office at the conclusion of the seventh season. As someone who was a fan of the original The Office (the British one, you know) and who was … Continue reading
Fun with Blocks (in Objective-C)
I’ve been working on a Mac application recently that’s 10.6-targeted, which has afforded me a multitude of opportunities to use blocks (Apple’s C language extension introduced in Mac OS X 10.6) to get some tricky features written with a level … Continue reading
P-ROC in Gameroom Magazine
We were at a friend’s house last weekend when he brought this Gameroom magazine article to my attention: a blurb about P-ROC, including an excerpt of the Pinball News article. It’s nice to see the project getting a little press, … Continue reading
NSBackgroundStyleRaised Rx
I was having quite a bit of trouble getting NSBackgroundStyleRaised to work on my NSView subclass’s label, creating the NSTextField programmatically. I tried fiddling with the background color, I tried disabling my drawRect:. Really hard. The strange thing was that … Continue reading
P-ROC/pyprocgame December Video Demo
Tonight I cut together some footage of the latest pyprocgame code (see my previous post on pyprocgame). The result is available on YouTube. The music is lunar FREAK on by ast0r, who I found out about through Andy Baio’s amazing … Continue reading
Introduction to pyprocgame
Gerry Stellenberg’s P-ROC became available today and I thought this would be a good time to write about the open source software that’s written to work with it. First, though, I want to talk about what P-ROC is and what … Continue reading
Driving a Pinball DMD with an Arduino Microcontroller
For quite some time now I’ve been interested in developing my own pinball machine. Obviously this is a massive endeavor. Before I happened across the P-ROC project, over the course of several days in April of 2007 I did some … Continue reading
Editing a UITableView: The Animated Insert Row
This post originally appeared on my Incomplete Labs blog on September 2nd, 2009. An iPhone app I’m working on has your traditional table view with an edit button in the upper right. I wanted an “Add New Item” row to … Continue reading
Making NSPoint/NSRect/NSSize Objects
This post originally appeared on my Incomplete Labs blog on January 9th, 2008, and was updated on December 9th, 2010 (see below). In Objective-C the common NSPoint/NSRect/NSSize/etc. data types are implemented as structures. But what if you need to pass … Continue reading