• 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
Cocoa drag and drop is screwy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa drag and drop is screwy


  • Subject: Cocoa drag and drop is screwy
  • From: Steve Gehrman <email@hidden>
  • Date: Mon, 2 May 2005 02:51:47 -0700


I need to know if the modifier keys are down during a drag and drop.

I'm calling this:

- (NSDragOperation)draggingSourceOperationMask;

It worked pre-Tiger, but now mail and a few other apps are sending me the wrong flags.

I need to know if the cmd and option keys are down, so I'm testing if the NSDragOperationGeneric and NSDragOperationCopy flags are set. If they are, I create an alias rather than copying the file. The Finder sends the correct flags, but not Mail.app

Anyone on the mail team want to respond? Why are these flags set this way?

-steve


_______________________________________________ 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: Tiger gcc 4 builds apps that don't run on 10.2.8
  • Next by Date: Re: Hyperlinks in NSTextFields?
  • Previous by thread: Re: NSBezierPath and line intersection
  • Next by thread: OutlineEdit example
  • Index(es):
    • Date
    • Thread