adium/adium
Clone
Summary
Browse
Changes
Graph
Merged matthewkotila/adium/tip into default
default
2016-09-05, Robbie
92fa28ff1873
Merged matthewkotila/adium/tip into default
Fixes #16970 ("Transition from SenTestingKit to XCTest") in order to build on OS X 10.11 / Xcode 7.2.
//
// AXCArrayControllerWithDragAndDrop.h
// XtrasCreator
//
// Created by Mac-arena the Bored Zo on 2005-11-09.
// Copyright 2005 Adium Team. All rights reserved.
//
/*! @class AXCArrayControllerWithDragAndDrop
* @brief Forwards table-view data-source methods for drag-and-drop validation
* acceptance to another object (the drag validator).
* @discussion Set an object as the drag validator, and this array controller
* as the table view's data source, and this array controller
* will forward any requests from the table view for drag validation
* information to that object, and also carry the results back.
*/
@
interface
AXCArrayControllerWithDragAndDrop
:
NSArrayController
{
id
dragValidator
;
}
-
(
id
)
dragValidator
;
-
(
void
)
setDragValidator
:
(
id
)
newValidator
;
#pragma mark -
-
(
NSDragOperation
)
tableView
:
(
NSTableView
*
)
tableView
validateDrop
:
(
id
<
NSDraggingInfo
>
)
info
proposedRow
:
(
int
)
row
proposedDropOperation
:
(
NSTableViewDropOperation
)
operation
;
-
(
BOOL
)
tableView
:
(
NSTableView
*
)
tableView
acceptDrop
:
(
id
<
NSDraggingInfo
>
)
info
row
:
(
int
)
row
dropOperation
:
(
NSTableViewDropOperation
)
operation
;
@
end