• 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: Dragging from NSTableView...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Dragging from NSTableView...
  • Next by Date: Re: Multiples Views (fwd)
  • Previous by thread: Re: Dragging from NSTableView...
  • Next by thread: Scope of Cocoa?
  • Index(es):
    • Date
    • Thread