« December 2006 | Main | February 2007 »

January 18, 2007

Cocoa manual binding to selection in NSArrayController

If I want to do this manually binding.jpg
I have to do this
    [vizController bind:@"runData"
               toObject:runsController
            withKeyPath:@"selection.self"
                options:nil];
My RTFM skills lack the voodoo to find where this is documented. Is there perhaps another way?

January 03, 2007

Coredata doubly-linked list

I just rewrote my model to be more sane and suddenly everything works. My next entry on this topic will be how to cleanly implement a doubly-linked list in coredata, I swear. I just need to write a few more unit tests to make sure I'm not missing a few potential edge cases that are giving me that creeping feeling...

I'll also give my thoughts on Rentzch's mogenerator (hint: awesome awesome awesome).

Test Suite '/Volumes/Docs/Users/jonathan/svnCheckouts/main/ipod/branches/xmlRefactorBranch/experiments/MOlinkedList/build/TestMoLinkedList.octest(Tests)' started at 2007-01-03 04:03:41 -0500
Test Suite 'testReorderObjects' started at 2007-01-03 04:03:41 -0500
Test Case '-[testReorderObjects testReorderObjects]' passed (0.000 seconds).
Test Suite 'testReorderObjects' finished at 2007-01-03 04:03:41 -0500.
Executed 1 test, with 0 failures (0 unexpected) in 0.000 (0.015) seconds

Test Suite 'TestIteration' started at 2007-01-03 04:03:41 -0500
Test Case '-[TestIteration testForwardIteration]' passed (0.000 seconds).
Test Case '-[TestIteration testReverseIteration]' passed (0.000 seconds).
Test Suite 'TestIteration' finished at 2007-01-03 04:03:41 -0500.
Executed 2 tests, with 0 failures (0 unexpected) in 0.000 (0.016) seconds

Test Suite 'TestNewObjectInsertions' started at 2007-01-03 04:03:41 -0500
Test Case '-[TestNewObjectInsertions testInsert]' passed (0.003 seconds).
Test Suite 'TestNewObjectInsertions' finished at 2007-01-03 04:03:41 -0500.
Executed 1 test, with 0 failures (0 unexpected) in 0.003 (0.008) seconds

Test Suite 'TestRemovingObjects' started at 2007-01-03 04:03:41 -0500
Test Case '-[TestRemovingObjects testRemovingObjects]' passed (0.000 seconds).
Test Suite 'TestRemovingObjects' finished at 2007-01-03 04:03:41 -0500.
Executed 1 test, with 0 failures (0 unexpected) in 0.000 (0.007) seconds

Test Suite '/Volumes/Docs/Users/jonathan/svnCheckouts/main/ipod/branches/xmlRefactorBranch/experiments/MOlinkedList/build/TestMoLinkedList.octest(Tests)' finished at 2007-01-03 04:03:41 -0500.
Executed 5 tests, with 0 failures (0 unexpected) in 0.003 (0.047) seconds


otest has exited with status 0.

January 02, 2007

Google Analytics follow-up

I found an easy way to add Google Analytics to a movabletype blog as well. There is a small plugin that puts the javascript on your page available here. I love it when others write code so I don't have to.