Author Archives: Jens Ayton

TVML explorations

So you looked at Apple’s very brief example of how to set up a TVML app. What’s next? First, a side note: if you jump into TVML expecting a general UI framework, you’ll be disappointed. TVML is a toolkit for … Continue reading

Posted in Cocoa, Code | 1 Comment

Death to printf()

A couple of weeks ago, Jean-Francois Roy twote: Format strings should be localizable. But that opens you to format string exploits. No win? — Jean-Francois Roy (@jfroy) 6 januari 2013 Actually, there’s a conceptually simple win: don’t let your format strings … Continue reading

Posted in Cocoa, Code | 1 Comment

P och NP nästan utan datorsvammel

1928 ställde matematikern David Hilbert sitt Entscheidungs­problem. Frågan var: finns det en algoritm – alltså en ändlig, fast uppställning deterministiska beräkningssteg – som, givet ett formellt språk och ett valfritt matematiskt påstående på det språket, kan avgöra om påståendet är … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Imitating Greateness: 16-bit Hack ALU Design in Minecraft

In the autumn of 2010, a video of a sixteen-bit ALU in Minecraft by theinternetftw went viral. A month later, I’d bought the game, played around with circuits a bit and published a detailed description of a functionally identical (but … Continue reading

Posted in Minecraft | Tagged , , | 2 Comments

On the Mac App Store

When the Mac App Store was announced, I said to someone, “‘Convenient’ isn’t the same as ‘good for you’.” This might look slightly odd in a community dedicated to improving people’s workflows, so I’d like to expand on it. (I … Continue reading

Posted in Cocoa, Politics | 2 Comments

Almost elegant cave man debugging

Recently, the Twitternets pointed me at Vincent Gable’s blog post, The Most Useful Objective-C Code I’ve Ever Written. It is indeed quite useful; given a semi-arbitrary expression, it prints out the value, using @encode() and macros to minimize drudgery.

Posted in Cocoa, Code | Tagged , | 8 Comments

Black Tuesday

█████ ███ ██████ ███ FRA ████ ███████ ██████. Continue reading

Posted in Politics | Tagged | Leave a comment

Proposal: generics (and some other stuff) for Objective-C

Some time ago, Greg Parker asked the Twitternets what we’d like to see in a purely hypothetical Objective-C-without-the-C language. Someone — I believe it was Landon Fuller — pointed at an article about the Strongtalk type system for Smalltalk. I … Continue reading

Posted in Cocoa, Code | Tagged , , , , , | 10 Comments

Multi-type Save Panel Controller

As a change of pace, I thought I’d post some code that doesn’t go out of its way to be bad. JAMultiTypeSavePanelController is a class (abstracted from ImageIO Export for Acorn) to handle the case where you want to offer … Continue reading

Posted in Cocoa, Code | 1 Comment

Wanted: a Right-Handed Keyboard

My current keyboard looks like this: (Well, roughly. It actually looks like this, but I couldn’t find a decent-resolution Swedish one.) This was a sensible design for the right-handed majority when it was introduced, some time in the stone age. … Continue reading

Posted in Hardware | 5 Comments