Author Archives: Joel Kin

About Joel Kin

Developing on Apple platforms for, holy shit, like twenty years now. Find me on linkedin and twitter. My personal website is joelk.in.

Mistakes Were Made: Initialize Your Locals

“Mistakes Were Made” may or may not end up being a post series where we talk about actual things we have done wrong, and the lessons thereby learned.  The uncertainty is about whether revealing all this stuff will make us … Continue reading

Posted in Code | Tagged , , | Leave a comment

CALayers v. CGLayers, or, Which Layer, Player?

What’s the Deal? An evergreen source of confusion for developers new to graphics on iOS is the existence of multiple Apple-provided graphics frameworks, and multiple “layer” objects within those frameworks.  We’re told to use Core Animation for compositing and animation, … Continue reading

Posted in Explanation | Tagged , , , | 2 Comments

Localizing your US States array

Suppose you have a whiny co-worker who insists that all user-facing strings be localized. That’s what scripting tools are for, right? Specifically sed, in this case. sed ‘s/@”[^”]*”/NSLocalizedString(&, nil)/g’ This little script will match NSStrings and replace them with a … Continue reading

Posted in Code | Tagged , , , , | Leave a comment

US States in an NSArray

Save yourself a little typing time, take advantage of mine. [NSArray arrayWithObjects:@”Alabama”, @”Alaska”, @”Arizona”, @”Arkansas”, @”California”, @”Colorado”, @”Connecticut”, @”Delaware”, @”Florida”, @”Georgia”, @”Hawaii”, @”Idaho”, @”Illinois”, @”Indiana”, @”Iowa”, @”Kansas”, @”Kentucky”, @”Louisiana”, @”Maine”, @”Maryland”, @”Massachusetts”, @”Michigan”, @”Minnesota”, @”Mississippi”, @”Missouri”, @”Montana”, @”Nebraska”, @”Nevada”, @”New … Continue reading

Posted in Code | Tagged , , | 15 Comments