-- validate drags
on tableView_validateDrop_proposedRow_proposedDropOperation_(theTableView, theID, theRow, theOperation)
-- This method (header NSTextView.h) returns a NSDragOperation
-- (header NSDragging.h) constant defined as follows:
--
--typedef NSUInteger NSDragOperation;
--
--enum {
-- NSDragOperationNone = 0,
-- etc.
-- NSDragOperationEvery = NSUIntegerMax
--};
--
-- Applescript code is seeing this as -1 which causes the following
-- return to fail with syslog message:
-- "unable to set return value because the AppleScript value <NSAppleEventDescriptor: -1> could not be coerced to type Q."
--
-- I am bypassing this problem by using an integer value of 0x7FFFFFFF.
--return current application's NSDragOperationEvery
return 2.147483647E+9
end tableView_validateDrop_proposedRow_proposedDropOperation_
Regards,
-- Dave