« August 2005 | Main

September 12, 2005

About this blog...

Just so you will know, this blog will be a mixture of technical stuff and personal stuff. Feel free to filter through what you find to be interesting. Any information posted here is my opinion and has nothing to do with my employer.

..corbin

Posted by corbin at 04:32 PM | Comments (0)

Flicker account...

I now have a flicker account. It can be found here.



www.flickr.com








corbin_dunn's photos More of corbin_dunn's photos




Posted by corbin at 04:30 PM | Comments (0)

Trials unicycling on “the machine” at burning man

Seth took some really really cool pictures of me on “the machine” at burning man:

Here i'm doing a still stand on the edge:

This is right before I hopped off to the ground.

Thanks Seth! These are my favorite pictures from Burning Man (so far).

Posted by corbin at 12:50 PM | Comments (4)

September 09, 2005

NSOutlineView, reloading items, and the expansion state

NSOutlineView requires all of the items in it to be pointer unique. If they are not, strange things happen. However, they can be equal (meaning [NSObject isEqual] may return YES).

However, there is a small exception to that rule. If you do a reload, the expansion state of items will be preserved. This expansion state is done by placing the current expanded items into an NSMutableSet. After a reload happens, if an item is in that set it is shown expanded.

What does this mean? Well, to see if an item should be expanded or not, it is looked up in the set. This is done via the item's hashcode and an isEqual comparision. Ahh ha! NSOutlineView is doing some non-pointer unique things here. This means you could potentially switch out items during a reload, and they would still appear expanded after the reload (as long as they have the same hashcode and are isEqual). Another nasty side effect: any items which mutate their hashtable will not appear expanded after a reload! For instance, if you modify an NSDictionary, its hash code will change. Take this point into consideration: the objects you put into an NSOutlineView are NSMutableDictionaries. You do a reload, and after the reload you add a child to one of the items via a key in the NSDictionary. Therefore, the NSMutableDictionary now has a different hashcode, and it will no longer appear expanded! The easy way to work around this is to use a non-mutable object in the outlineview (such as your own object, which might have a dictionary inside of it to keep track of things). Just a neat tip, for those who care or run into this.

Posted by corbin at 03:54 PM | Comments (0)

September 07, 2005

Burning man pictures and stuff

I went to burning man last week. It was really cool!

Here are a few pictures I borrowed from some of my fellow “Pancake Playhouse” buddies:

Normal Brc05 Kitchen1


-corbin

Posted by corbin at 01:51 PM | Comments (1)