Monthly Archives: June 2009

Shiny Red Buttons (4)

Today, we package the gloss gradient and rounded rect code we developed on Monday and Friday into a UIButton category, and take a quick look at adding labels to these buttons; the latter discussion is much simpler than I had … Continue reading

Posted in iPhone | Comments Off

Shiny Red Buttons (3)

Today, we’ll actually get around to the business of drawing some shiny pictures. We’ll be using Matt Gallagher’s gloss gradients code as a base, with some minor adjustments to allow for porting to the iPhone, and for personal taste. We’ll … Continue reading

Posted in iPhone | Comments Off

Grab Bag

Here are three quick, vaguely iPhone-related items: Datacase looks like a pretty neat app. plistlib is a useful way to manage plists from within Python. It’s a Bad Idea to manage plists with over 100K items from Xcode. (Actually, this … Continue reading

Posted in Jack Handy | Comments Off

Shiny Red Buttons (2.5)

As promised, here are some test cases that exercise the rounded rect code presented yesterday. (If you want to study the results, click on the image to the left for a full-size screenshot.) Although only intended for testing, this code … Continue reading

Posted in iPhone | Comments Off

Shiny Red Buttons (2)

Today, we’ll see how to use Quartz 2D to generate rounded rectangles, either as outlines, or as clipped regions. We’ll begin with some background on Quartz technicalities, and then see some simple path generation code.

Posted in iPhone | Comments Off

Shiny Red Buttons (1)

One of the most striking elements of “modern” user interfaces is that half the buttons are so shiny that it’s a wonder magpies don’t break into your house and make off with your PC. This is all very pretty, but … Continue reading

Posted in iPhone | Comments Off

The Past

While reading through a 1938 copy of Dale Carnegie’s “How to Win Friends and Influence People”, I came across this paragraph: Shortly after the close of the war, I learned an invaluable lesson one night in London. I was manager … Continue reading

Posted in Jack Handy | Comments Off

Greta Garbo

Garbo is an iconic name, of course, but one can lose sight of what a good actress, and compelling screen presence, she really was. If you haven’t seen any of her movies, I’d encourage you to buy/rent/add to your queue … Continue reading

Posted in Jack Handy | Comments Off

BBQ

One of the side-effects of BBQing some meat is a great deal of strongly aromatic smoke. If you’re manning (or just near) the grill, this tends to soak into you; as a result, you trail a cloud of BBQ scent … Continue reading

Posted in Jack Handy | Comments Off

Math

Saw this article on Slashdot today, and found it interesting. It’s a longish cri de coeur about the state of mathematical education, and about the widespread misunderstanding of what math is. (Short version: Math is primarily an art form, like … Continue reading

Posted in Jack Handy | Comments Off