adium/adium
Clone
Summary
Browse
Changes
Graph
Update version number in Info.plist. Add a ticket number to Changes.txt.
adium-1.5.10.3
2017-03-24, Robert Vehse
6194bf1c1f66
Update version number in Info.plist. Add a ticket number to Changes.txt.
//
// AXCArrayControllerWithDragAndDrop.m
// XtrasCreator
//
// Created by Mac-arena the Bored Zo on 2005-11-09.
// Copyright 2005 Adium Team. All rights reserved.
//
#import "AXCArrayControllerWithDragAndDrop.h"
@implementation
AXCArrayControllerWithDragAndDrop
-
(
id
)
dragValidator
{
return
dragValidator
;
}
-
(
void
)
setDragValidator:
(
id
)
newValidator
{
dragValidator
=
newValidator
;
}
#pragma mark -
-
(
NSDragOperation
)
tableView:
(
NSTableView
*
)
tableView
validateDrop:
(
id
<
NSDraggingInfo
>
)
info
proposedRow:
(
int
)
row
proposedDropOperation:
(
NSTableViewDropOperation
)
operation
{
return
[
dragValidator
tableView
:
tableView
validateDrop
:
info
proposedRow
:
row
proposedDropOperation
:
operation
];
}
-
(
BOOL
)
tableView:
(
NSTableView
*
)
tableView
acceptDrop:
(
id
<
NSDraggingInfo
>
)
info
row:
(
int
)
row
dropOperation:
(
NSTableViewDropOperation
)
operation
{
return
[
dragValidator
tableView
:
tableView
acceptDrop
:
info
row
:
row
dropOperation
:
operation
];
}
-
(
BOOL
)
tableView:
(
NSTableView
*
)
aTableView
writeRowsWithIndexes:
(
NSIndexSet
*
)
rowIndices
toPasteboard:
(
NSPasteboard
*
)
pboard
{
if
([
dragValidator
respondsToSelector
:
@selector
(
tableView
:
writeRowsWithIndexes
:
toPasteboard
:
)])
return
[
dragValidator
tableView
:
aTableView
writeRowsWithIndexes
:
rowIndices
toPasteboard
:
pboard
];
else
return
NO
;
}
@end