• 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: Drag and Drop to Carbon Only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and Drop to Carbon Only


  • Subject: Re: Drag and Drop to Carbon Only
  • From: "Erik J. Barzeski" <email@hidden>
  • Date: Mon, 01 Apr 2002 01:20:15 -0500

Hi,

On 3/31/02 11:14pm, "Brian Webster" <email@hidden> wrote:
> One possibility might have to do with the
> draggingSourceOperationMaskForLocal: method in the
> NSDraggingSource protocol. The method takes a BOOL argument
> that lets you return different sets of drag operations for local
> and non-local drags (i.e. drags within your app and drags to
> another app). You can use this to prevent a user from copying
> data out of your app by drag-and-drop if you don't want them to.

That was it. I implemented that method in my subclass, returned the
"everything" mask item, and it works.

> However, there is a bug in the drag system whereby drags to
> Carbon apps pass in YES as the flag when it should pass in NO.
> I don't know what NSTableView's default implementation of this
> method returns, but if it returns a different value for
> non-local drags that would prevent them, that would explain why
> the drags only work within your app and to Carbon apps, but not
> other Cocoa apps, which do behave correctly with respect to
> locality.
>
> Try subclassing NSTableView (if you haven't done so already) and
> implementing this method to return an appropriate drag operation
> for both local and non-local drags.

Yep, thanks for the heads up. That would've taken me awhile to find. I
appreciate it. Hopefully this will now be archived for others to find (I
looked and didn't find this answer).

Thanks again.


--
Best wishes,
Erik J. Barzeski

#define QUESTION ((bb) || !(bb)) // Shakespeare
*******************************************************************
Email: erik@(anything below)
AIM: iacas ICQ: 8186546

http://barzeski.com/ http://weims.net/
http://techstra.net/ http://cocoadevcentral.com/
http://soundsetcentral.com/ http://applescriptcentral.com/
*******************************************************************
_______________________________________________
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: Re: StartupItem info: Laptop Network Starting
  • Next by Date: Should I release an array created with componentsSeparatedByString?
  • Previous by thread: Re: StartupItem info: Laptop Network Starting
  • Next by thread: Should I release an array created with componentsSeparatedByString?
  • Index(es):
    • Date
    • Thread