Corbin Dunn and Louise Lovelle
Plug Bug
Treehouse
Woodworking
Pictures/Photography
Videos
Machining
Unicycling
About
Search

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):

Tableview-Cmd-Shift-Dpicture 1

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 ALL the time.

3. Use Cmd-Alt-F to focus the search field. Once it is focused, hit the down arrow to pop up the menu, and the up arrow once to select your project name (then hit enter):

Cmd-Shift-F-Focused-Picture 1

You can then search through all your files using the search field. This works particular well when you can’t remember the full filename.


Happy Tree Friends


Htf-Header

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).

Thumb Img 2402

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: Amazon.com: Grizzly G0444 10” Table Saw 1-1/2 HP Single-Phase 110V: Tools & Hardware. It is excellent! I highly recommend it..of course, I’ve only used it for maybe one hour total

B0000E3Hnn.01-A3Tq3Oiw6Ntqkl. Scmzzzzzzz


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:
Thumb Img 2382

Open view:
Thumb Img 2374

Front view — notice the cool grain pattern as it flows around the box side:
Thumb Img 2373


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.



(c) 2008-2009 Corbin Dunn

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

Entries (RSS) and Comments (RSS).

18 queries. 0.406 seconds.