Re: NSMatrix drag & drop
Re: NSMatrix drag & drop
- Subject: Re: NSMatrix drag & drop
- From: Dave Riggle <email@hidden>
- Date: Mon, 18 Aug 2003 23:37:48 -0700
I do have a mouseDragged() routine, but it never gets called unless I
override mouseDown(). The default behavior for a NSListModeMatrix
matrix seems to be for the drag to extend the selection. Maybe I need
to use another mode. None of them seem very useful, however:
http://developer.apple.com/documentation/Cocoa/Conceptual/Matrix/
Concepts/MatrixSelectionModes.html
Dave
On Monday, August 18, 2003, at 10:08 PM, Scott Anguish wrote:
On Tuesday, August 19, 2003, at 12:22 AM, Dave Riggle wrote:
My little iPhoto-like app is coming along. Selection and drag & drop
are mostly working. I have a few new questions:
1. NSMatrix's mouseDown() function eats drag events. Is there a
clean way to overrride it so I can get drag events without having to
re-implement all the shift-click, cmd-click, double click logic?
you'd want to implement the mouseDrag() I think.
3. How do I get the cursor to change into a "+" arrow when I drag an
image to the finder? Right now I am putting a TIFF on the
pasteboard. Is that the problem? I plan on putting file names there
eventually.
in my NSMatrix subclass:
- (unsigned int)draggingSourceOperationMaskForLocal:(BOOL)flag
{
return NSDragOperationCopy;
}
I think so, yes.
_______________________________________________
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.