Corbin's Treehouse - Corbin Dunn, Santa Cruz, CA
Plug Bug

Archive for July, 2005

Drag and Drop in an NSTableView

Drag and Drop in an NSTableView is easy to do. However, I think the documentation (Table Views: Using Drag and Drop in Tables) for it isn’t particularly great. It misses a few points, so I’m going to go over the basic steps on how to add drag and drop to your TableView. Here, I’ll assume you have a TableView with your source code controller class set as the delegate. Declare your custom pasteboard format: #define BasicTableViewDragAndDropDataType @“BasicTableViewDragAndDropDataType” In awakeFromNib you must register for the drag types you want to receive (you could have others here): – (void)awakeFromNib {    ... [read more]

Dynamically populating an NSPopUpButtonCell in an NSTableView

It is quite common. You have a PopUpButton (NSPopUpButtonCell) in an NSTableView and you want to dynamically change the contents based on the selected row: How do you do this? There are a few tricky steps. First, add a menu to the nib and set the delegate for the menu to be your Controller: Okay. Next is the tricky part. In IB, when you have a column in a tableview selected, it has a little white triangle in the corner: Clicking on that will allow you to modify properties of the cell (in this case, the NSPopUpButtonCell). However, we want... [read more]

Delphi easter eggs

I can’t believe people found out about the Kitchen sink! I did write that silly easter egg.

Discovery HD — Weird Homes

Hi All, Someone just emailed me saying they saw the episode of “Weird Homes” with me in it. It appears to be airing right now! Discovery HD Theater channel. here’s info: Cool, huh! I’m the “busy builder who swings through the trees”.

(c) 2008-2017 Corbin Dunn

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

Subscribe to RSS feeds for entries and comments.

33 queries. 0.413 seconds.