• 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: "Sean McBride" <email@hidden>
  • Date: Mon, 28 Feb 2005 10:29:51 -0500
  • Organization: Rogue Research

On 2005-02-27 20:51, Mark Dawson said:

>So, it looks like the option key down only should have meaning when the
>key up event happens--whether the user has had it on or off previous
>doesn't matter.

Toggling the option key during the drag should toggle the icon, as the
Finder does.  The final decision of what kind of drag to do should be
done when the drag is over (ie at mouse up).

> From what Tomas pointed out, the Finder (and it looks
>like iMovie) use an arrow with a green "+" when a copy operation might
>happen (i.e., user holding down the option key).  I don't see this
>arrow listed in "NSCursor" as an option; I'll have to track it down.

That is the standard 'copy' cursor, see the HIG:

<http://developer.apple.com/documentation/UserExperience/Conceptual/
OSXHIGuidelines/XHIGCursors/chapter_6_section_2.html>

For some mysterious reason, it is not available with NSCursor, please
file a bug.  (I really find it odd that it's missing, considering the
rarely used disappearingItemCursor is there.)

You could set the cursor using Carbon's SetThemeCursor(), but not having
an NSCursor is problematic (can't use cursor rects, etc.).  I recently
tried to get the cursor bitmap from Carbon, and you can, but it's not
pretty.  See:

<http://lists.apple.com/archives/carbon-dev/2005/Feb/msg01184.html>

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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: 
 >Re: option-drag & Cocoa (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: How do I make a panel come out of the title bar
  • Next by Date: Re: Where is plus arrow cursor?
  • Previous by thread: Re: option-drag & Cocoa
  • Next by thread: Quickest Way to Open an NSTextAttachment in NSTextView
  • Index(es):
    • Date
    • Thread