Tag Archives: Cocoa

Key-Value Observing Done Right (again)

Mike Ash posted a great article about problems with Cocoa’s Key Value Observing and provided a better set of classes to work with KVO: MAKVONotificationCenter. I’ve been using Mike’s code in various projects over the last few months and am … Continue reading

Posted in Default | Tagged , , , | Comments Off

TouchMap

I was going to make a more in-depth posting about TouchMap, but then something kind of big happened. The code is however in the TouchCode google code repository. So have at it. (You’ll probably want to check out all of … Continue reading

Posted in Default | Tagged , , , , | View Comments

TouchMap Teaser

A quick teaser for TouchMap. I’m hoping to release this on TouchCode later today. TouchMap.mov

Posted in Default | Tagged , , , , | View Comments

AcornImage

It was just your typical InterfaceBuilder 3 window… with your vanilla NSImageView… referring to an image file within an Xcode project… Holy Cow! An Acorn file? Does that mean I can use Acorn files directly in Interface Builder 3? Does … Continue reading

Posted in Default | Tagged , , , , | View Comments

R.I.P Toxic Progress Indicator

Thanks to Matt Gemmell for pointing out that Apple has finally provided a pie chart style NSProgressIndicator for the circular/determinate modes. This style is new to Leopard. This means my Toxic Progress Indicator class can be retired, at least for … Continue reading

Posted in Default | Tagged , , , | View Comments

SpaceNavigator controlled Lego Mindstorms NXT

It’s my second year of coaching a First Lego League team. The experience has been fantastic, I’m teaching 4th and 5th grade children about robots and computers, and teaching them to build and program their own robots. This year the … Continue reading

Posted in Default | Tagged , , , , , , | View Comments

The Intersection of Cool and Awesome

3Dconnexion (a division of Logitech) produces the coolest named device ever: The 3Dconnexion SpaceNavigator . This is a 3D input device with 6 degrees of freedom, meaning you can move and rotate it through the X, Y and Z planes. … Continue reading

Posted in Default | Tagged , , , , , | View Comments

‘Discrete’ NSLevelIndicatorCell too slow

I recently needed to embed the ‘Discrete’ variant of the NSLevelIndicatorCell into an NSTableView. The discrete cell looks like this: Unfortunately adding the cell caused drawing of the table’s window to slow to crawl. The spinning beachball of death would … Continue reading

Posted in Default | Tagged , , , , | View Comments

Grab that Invocation

CInvocationGrabber is a Cocoa class to help with creating NSInvocation objects. NSInvocation objects are Cocoa’s equivalent of “functors” and are extremely handy. But unfortunately creating them is often a pain. For example, take the following code showing how to create … Continue reading

Posted in Default | Tagged , , | View Comments

Toxic Progress Indicator Updated

Thanks to Daniel Jalkut for submitting a patch to Toxic Progress Indicator. The patches fixes a couple of silly bugs with setMinValue/setMaxValue and also makes the code a little bit more generic. I’ve updated subversion with the patch, which is … Continue reading

Posted in Default | Tagged , , | Comments Off