Re: Table View not Getting Drag messages
Re: Table View not Getting Drag messages
- Subject: Re: Table View not Getting Drag messages
- From: Lorenzo <email@hidden>
- Date: Wed, 26 May 2004 11:44:43 +0200
Hi,
may be you forgot to overwrite the NSTable view method
"draggingSourceOperationMaskForLocal". If so, try to create a subclass of
NSTableView in IB, call it "MYTableView", then assign this custom class to
your NSTableView outlet, then in the code write as below.
@implementation MYTableView
- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal
{
return NSDragOperationCopy;
// or you could need something like
// if(isLocal) return NSDragOperationNone;
// else return NSDragOperationCopy;
// if the drag started from your application itself
// isLocal is YES, otherwise it's NO.
}
@end
Also, in your delegate method "writeRows:" be sure you return YES.
You could track this putting as first line
return YES;
then, if everything works, go and fill your pasterboard with the data and
try the result.
:-)
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.