Category Archives: Code & Craft

Hands-on practice: testing, debugging, builds, documentation and tooling.

Cocoa Memory Management

It becomes evident, thanks to the mass centralisation of the neverending september effect that is stackoverflow, that despite the large number of electrons expended on documenting the retain/release/autorelease reference counting mechanism for managing memory in Cocoa, Cocoa Touch, UIKit, AppKit, … Continue reading →

Posted in Code & Craft | Tagged , , , | 3 Comments

The twitter sitter hit a bitter critter

Yup, more on the subject of a home-grown Twitter client. This time, posting and sorting out the UI somewhat have both been achieved: Posting tweets is amazingly simple – just take the tweet and stuff it into the body of … Continue reading →

Posted in Code & Craft | Tagged | Leave a comment

Walking a mile dans ses chausseurs

The word ‘translator’ has an interesting history. In the Anglo-Saxon language, ‘wealhstod’ meant “learned in Welsh” more or less, and described someone who could parlay with the important members of the local British tribes. As is often the case with … Continue reading →

Posted in Code & Craft | Tagged | Leave a comment

Cocoa#, Mono and Me

My great application: Yeah, OK, not so great. But this Inverse Hoffman is the result of a couple of hours hacking in Mono, with Cocoa#. My app’s largely based on the Stupid Word Counter tutorial, though it’s a from-scratch implementation … Continue reading →

Posted in Code & Craft | Tagged , | 1 Comment

Objective-C NAQs

Never-Asked Questions :-) In Code Complete 2 ยง6.5, Steve McConnell presents a list of class-related design issues that "vary significantly depending on the language". So why don’t we look at them for Objective-C? Especially as I can’t find anyone else … Continue reading →

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

Local KDC on Leopard

via Nigel Kersten, a great description of the operation of Leopard’s built-in local KDC. I think the most exciting thing about the local KDC is the Bonjour support; could we see simple cross-system trust in the near future? Could there … Continue reading →

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

WWDC aside

None of Perl, Cocoa or some weird XML toolkit came up with the “simple things simple, complex things possible” quote.

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

ObjC FAQ update

Added a question about the ObjC 2.0 garbage collector. Sorry it’s been so long in coming! I’ll try and add a few more ObjC 2.0 questions over the coming days.

Posted in Code & Craft | Tagged | Leave a comment

Little hack to help with testing

Want the ability to switch in different test drivers, mock objects, or other test-specific behaviour? Here’s a pattern I came up with (about a year ago) to do that in a GNUstep test tool, which can readily be used in … Continue reading →

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

The Dock should be destroyed, or at least changed a lot

I found an article about features Windows should have but doesn’t, which I originally got to from OSNews’ commentary on the feature list. To quote the original article: The centerpiece of every Mac desktop is a little utility called the … Continue reading →

Posted in Code & Craft | Tagged , , | 2 Comments