{"id":123,"date":"2006-02-02T17:11:08","date_gmt":"2006-02-03T01:11:08","guid":{"rendered":"http:\/\/www.corbinstreehouse.com\/blog\/?p=123"},"modified":"2018-10-31T10:15:16","modified_gmt":"2018-10-31T17:15:16","slug":"cocoa-targeting-the-entire-tableview-in-a-drop-operation","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2006\/02\/cocoa-targeting-the-entire-tableview-in-a-drop-operation\/","title":{"rendered":"Cocoa: Targeting the entire tableview in a drop operation"},"content":{"rendered":"<p id=\"top\" \/>Hi Programmers.<\/p>\n<p>If you are doing drag and drop in an NSTableView with Cocoa, you can use the following method in your \u00e2\u20ac\u0153validateDrop\u00e2\u20ac\u009d datasource method to retarget the row it is going to:<\/p>\n<p>&#8211; (void)setDropRow:(int)row dropOperation:(NSTableViewDropOperation)op;<\/p>\n<p>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi Programmers. If you are doing drag and drop in an NSTableView with Cocoa, you can use the following method in your \u00e2\u20ac\u0153validateDrop\u00e2\u20ac\u009d datasource method to retarget the row it is going to: &#8211; (void)setDropRow:(int)row&#8230; <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2006\/02\/cocoa-targeting-the-entire-tableview-in-a-drop-operation\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,6,1],"tags":[63,130,72],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-apple","category-cocoa","category-general","tag-cocoa","tag-objc","tag-programming"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":1,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":5325,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions\/5325"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}