• 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
Drag and drop not working from NSMatrix subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag and drop not working from NSMatrix subclass


  • Subject: Drag and drop not working from NSMatrix subclass
  • From: "Lawrence Sanbourne" <email@hidden>
  • Date: Sun, 30 Apr 2006 20:12:23 -0500

Hello,

I have a source-list NSTableView, and an NSMatrix subclass plus
another NSTableView representing the same data as the matrix (icon vs.
list view). Dragging from the list view to the source list is work
great. For the NSMatrix, I implemented my own drag-and-drop support,
and although the drag image is appearing correctly, the source list
won't accept the drops. It doesn't even call
-tableView:validateDrop:proposedRow:proposedDropOperation:.

My matrix calls this method from -mouseDragged::

[self dragImage:dragImage
						 at:imageLoc
					 offset:NSZeroSize // ignored in 10.4
					  event:theEvent
				 pasteboard:[NSPasteboard pasteboardWithName:NSDragPboard]
					 source:self
				  slideBack:YES];

And it returns the proper drag mask in -draggingSourceOperationMaskForLocal:.

Any ideas what I'm doing wrong?

Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Distributed objects: connecting to a process running as root?
  • Next by Date: Re: Distributed objects: connecting to a process running as root?
  • Previous by thread: beginUndoGrouping and "dirty" state
  • Next by thread: 2 Gig limit on NSData objects
  • Index(es):
    • Date
    • Thread