Corbin's Treehouse - Corbin Dunn, Santa Cruz, CA
Plug Bug
Treehouse
Photography
Videos
Projects
Unicycling
About

Archive for February, 2006

[NSColorPanel isContinuous] and [NSColorWell isContinuous]

A quick comment about these two properties: [NSColorPanel isContinuous] and [NSColorWell isContinuous]. Generally, you want these two things to be in sync. Whenever the color changes in the NSColorPanel, the color in the NSColorWell will update. However, the action in the NSColorWell will sometimes not be sent, since it isn’t the thing controlling the mouse. If you set isContinuous to NO on an NSColorWell, but do not call [[NSColorPanel sharedColorPanel] setContinuous:NO], then the color panel is going to keep sending messages to the color well, but the action will never be sent! The bottom line: make the two properties match!


Xcode shortcuts to finding a file.

Cocoa Developers: While programming with Xcode, I’ve developed several habits to make me a faster programmer. I’ll share these tidbits with you. 1. Use Cmd-Shift-D to quickly open files that you know the names to. I’ll know that I want to open a particular file, such as NSTableView.m. So, I hit cmd-shift-d to bring up the “Open Quicky” dialog and type in nstableview (note that I don’t use the correct case, or extension, and it still works): This will work for framework header files too. 2. Use Cmd-Alt-UpArrow to switch from the header to the implementation file. I use this... [read more]


Happy Tree Friends

One of my favorite video podcasts is Happy Tree Friends. They are a rather sick and twisted cartoon, but entertaining. Subscribe for your self.


Burning Man 2006

Today I got my burning man 2006 ticket. I’m not sure yet if I’m going to go for sure. Probably, as it was a lot of fun last year.


How to build a treehouse

I like treehouses, if you haven’t guessed. I found this great step-by-step page on how to build a treehouse: Treehouse – on instructables. In general, Instructables: step-by-step collaboration, is a great website. Very cool. For those googling here, don’t forget to check out *my* treehouse.


Box # 5…

I finished box #5 a few days ago (for Stephanie). It turned out really nice! It is made of redwood with pine keys. This is the first thing I made with my new table saw (and using the old radial arm saw I have from my dad). View all the pictures.


new table saw!

I really needed to upgrade my table saw, and a few days ago I got my order in from Amazon.com: a nice new grizzly 10“ table saw. I got this one:


Mailboxes muni ride — a few pictures

Tom took a few pictures from our mountain unicycle ride last weekend, Mailboxes, in santa cruz. check them out here.


Woodworking: Box #4

Well, I finished box 4 a few days ago. It is pretty nice! Some of the pictures are now on my pictures page: Corbin’s Pictures – Box #4. I used redwood; again it was from home depot, but I bought an S4S piece of wood that was pretty nice, although slightly bowed. It is a simple miter cut box, with a groove routed on the top piece to create a nice relief. The top was glued to the box, and I cut it off with the table saw. I think hinged it together after finishing the box. Back view: Open... [read more]


Cocoa: NSArrayController and two tableview’s

Hi Cocoa Developers, Tip of the day: Don’t bind two NSTableView’s to a single NSArrayController instance. Bugs will happen! More specifically, attempting to multi-select rows will not work properly — the two tableviews will fight for the selection. Eventually, this may be changed, but for now, in Tiger, it does not work, so don’t do it! EDIT: This will work, as long as the allowsMultipleSelection value is the same on both tableviews.


Cocoa: Targeting the entire tableview in a drop operation

Hi Programmers. If you are doing drag and drop in an NSTableView with Cocoa, you can use the following method in your “validateDrop” datasource method to retarget the row it is going to: – (void)setDropRow:(int)row dropOperation:(NSTableViewDropOperation)op; The documentation is missing something. If you specify a row of -1 and a dropOperation of NSTableViewDropOn, it will target the entire tableview, as opposed to an individual row.



(c) 2008-2017 Corbin Dunn

Corbin's Treehouse is powered by WordPress. Made on a Mac.

Subscribe to RSS feeds for entries and comments.

40 queries. 0.457 seconds.