RE: Dragging from NSTableView...
RE: Dragging from NSTableView...
- Subject: RE: Dragging from NSTableView...
- From: "Bell, Carl" <email@hidden>
- Date: Wed, 14 Nov 2001 13:57:01 -0600
- Thread-topic: Dragging from NSTableView...
>
-----Original Message-----
>
From: Stiphane Sudre [mailto:email@hidden]
>
Sent: Wed, November 14, 2001 1:29 PM
>
To: Bell, Carl
>
Cc: email@hidden
>
Subject: Re: Dragging from NSTableView...
>
>
I added this to my code (after someone told me to):
>
>
- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal
>
{
>
if (isLocal) return NSDragOperationEvery;
>
else return NSDragOperationCopy;
>
}
That was it! Thanks!
It turns out, this snippet is used in the DragNDropOutlineView example,
but I was looking in the wrong file for inspiration and missed it.
BTW, after I sent my message (but before I added the above) I tried
dragging to a few more apps and I was able to drag to IE and AppleWorks.
Maybe this is a Carbon/Cocoa thing.
-cb
________________________________________________________________________
Carl W. Bell <
http://www.baylor.edu/~Carl_Bell/index.html>
Sr. Analyst/Programmer Baylor University Academic Technology Center