• 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: option-drag & Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: option-drag & Cocoa


  • Subject: Re: option-drag & Cocoa
  • From: Thomas Davie <email@hidden>
  • Date: Sun, 27 Feb 2005 00:02:40 +0000

I know when an option-drag happens, I'm supposed to initiate a copy operation. From the examples I've seen, drags are set up in the -mouseDown: method, which is continually called. My question revolves around state: since I get continually called, the option key may turn on and off. Do most people save a state (option on/off) at the start of a drag, or honor the possibility of a continually changing option key? All the UI guidelines say is that an option key should initiate a drag, not what to do about the user pressing it mid-way through a drag or releasing it. Honoring a changing state could look weird (i.e., a copy might leave the original in place, and show an image moving during the drag; honoring the change would mean that the original would suddenly dissapear…)
If you try dragging something in the finder, you will notice that the (+) appears and disappears next to the cursor as you press and release alt, and so changes the operation... For consistencies sake, I'd go with that.

Bob

_______________________________________________
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


References: 
 >option-drag & Cocoa (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: NSTableView opacity problem
  • Next by Date: Re: Connecting NSOutlineView to NSTextView
  • Previous by thread: option-drag & Cocoa
  • Next by thread: Re: option-drag & Cocoa
  • Index(es):
    • Date
    • Thread