• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Table View not Getting Drag messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Problem with NSOutlineView outlineView:willDisplayCell:forTableColumn:item: delegate method
  • Next by Date: Re: How to get date string formats in System International Preferences
  • Previous by thread: Table View not Getting Drag messages
  • Next by thread: Disregard Last Message
  • Index(es):
    • Date
    • Thread