• 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
Dragging, aliases, and the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dragging, aliases, and the Finder


  • Subject: Dragging, aliases, and the Finder
  • From: John Blackburn <email@hidden>
  • Date: Sat, 13 Apr 2002 22:30:51 -0700

Hello,

Command-option dragging within the Finder displays the little "I want to make an alias" curved-arrow cursor when held over a suitable target. I'd like to add this functionality to my app. Am I responsible for displaying this cursor? Does the Drag Manager handle this? Is this a Finder-only convention? I know the Drag Manager already displays the plus-sign cursor for copying when appropriate, so it seems reasonable that there's some way to indicate an alias-ready drag destination as well. But how?

Of the NSDragOperations, only NSDragOperationLink sounds promising, but it's vaguely documented and sounds like the old Publish-and-Subscribe model.

Alternatively, if this is a Finder-only convention, can a drag destination indicate that it will accept an alias and cause the Finder to create an alias somehow in the drop location? Or is the drag destination expected to respond to the drop by telling the Finder (via AppleEvents) to create an alias in the drop location?

So, two questions:

1. How do you cause the little curved-arrow cursor to appear during a drag?
2. What the proper protocol to end up with a new alias file in the drop location?

Thank you,
John Blackburn
_______________________________________________
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: Dynamically loading NIB files into sheets
  • Next by Date: Creating beautiful thumbnails
  • Previous by thread: Re: Dynamically loading NIB files into sheets
  • Next by thread: Re: Dragging, aliases, and the Finder
  • Index(es):
    • Date
    • Thread