TextExpander + Xcode

inessential.com

Collin Donnell created a TextExpander snippet for wrapping a string with an NSLocalizedString macro. I constantly forget that TextExpander works in Xcode. I use it everywhere else — I should use it in Xcode too.

3 January 2013

Functional Programming

inessential.com

Tim Bray links to an article on functional programming that explains why it’s important. I’m not sure I get functional programming yet — though I’m curious. I also suspect that I may already be using functional programming principles. My parents taught me…

3 January 2013

Adobe and Apple Didn't Unit Test For "Forward Date" Bugs. Do You?

Slashdot

llamafirst writes "As the year flipped to 2013, we learned that Adobe and Apple don't test for "forward date" bugs. Adobe prevented any copy of FrameMaker 10 from launching and Apple broke Do Not Disturb for the first week of 2013. Surely some more…

3 January 2013

Paul on UITableViewCell

inessential.com

Paul Goracke: UITableViewCell Is Not a Controller, But…: > I’ve been down a number of UITableViewCell paths that bit me in the end, many of which Brent seems to have experienced as well, but I have ended up settling on creating UITableViewCell subclasses…

2 January 2013

UITableViewCell Is Not a Controller

inessential.com

In a previous post I wrote that passing model objects to a UITableViewCell subclass is a bad practice. Some people asked me why, so I’ll explain. WHAT I MEAN BY MODEL OBJECT By model object I don’t mean NSStrings, numbers, and so on. I mean the thing that…

1 January 2013

Open With Menu Duplicates

Use Your Loaf

Copyright © 2019 - K Harrison Privacy and Cookies Terms of Use, I have for some time been suffering a minor (but it seems not uncommon) annoyance with the “Open With” menu when I right click on a document in the Finder. Over time a number of old and…

1 January 2013

Coders in the Hands of an Angry God

inessential.com

Ash Furrow in Seven Deadly Sins of Modern Objective-C makes good points. I especially like his reminder to use NSInteger and friends: > Yeah, that’s right: every time I need a integer in Objective-C, I use NSInteger. If I need it to be unsigned, I use…

31 December 2012

Reader Tips

inessential.com

NSHipster published a nice set of reader submissions. My favorite is the reminder about Xcode snippets — I keep forgetting that feature exists. (Though I do wish we also had the ability to write scripts. I miss that feature from Xcode 3.)

31 December 2012

UIRemoteViewController

inessential.com

Somehow I missed Ole Begemann’s well-done research into remote view controllers when he posted it in October. Fascinating and tantalizing.

28 December 2012

Testing for OS X vs iOS

TUAW - The Unofficial Apple Weblog

Yesterday, I was messing around building shared NSLayoutConstraint code to be used across iOS and OS X. I put in a few #if TARGET_OS_MAC directives, assuming they'd just work. They didn't. Turns out that you should always check for TARGET_OS_IPHONE first,…

27 December 2012