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

Archive for February, 2006

Cocoa: Targeting the entire tableview in a drop operation

Thursday, February 2nd, 2006

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-2012 Corbin Dunn

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

Subscribe to RSS feeds for entries and comments.

14 queries. 0.685 seconds.


Fatal error: Call to undefined function akismet_counter() in /home/corbin_dunn/corbinstreehouse.com/blog/wp-content/themes/corbins-treehouse-white/footer.php on line 38