• 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: Detect ALT key pressed during dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect ALT key pressed during dragging


  • Subject: Re: Detect ALT key pressed during dragging
  • From: j o a r <email@hidden>
  • Date: Sat, 15 May 2004 19:21:50 +0200

Why don't you just ask the sender object in the drag operation for the
draggingSourceOperationMask property?

<file:///Developer/Documentation/Cocoa/Reference/ApplicationKit/
ObjC_classic/Protocols/NSDraggingInfo.html>

j o a r

On 2004-05-15, at 18.51, Lorenzo wrote:

> within one of the methods: draggingEntered, performDragOperation,
> prepareForDragOperation, I need to detect if the user is pressing the
> ALT
> key. So I tried to use the following:
>
> if([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask){
> altPressed = YES;
> }
>
> But it doesn't work. altPressed is always NO;
> Is a special method to detect the modifierFlags during the
> performDragOperation method?

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


  • Follow-Ups:
    • Re: Detect ALT key pressed during dragging
      • From: Lorenzo <email@hidden>
References: 
 >Detect ALT key pressed during dragging (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Detect ALT key pressed during dragging
  • Next by Date: [ANN] "Made with Cocoa" Images!
  • Previous by thread: Re: Detect ALT key pressed during dragging
  • Next by thread: Re: Detect ALT key pressed during dragging
  • Index(es):
    • Date
    • Thread