• 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: (Newb question?) Launching app on dock icon file drop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (Newb question?) Launching app on dock icon file drop?


  • Subject: Re: (Newb question?) Launching app on dock icon file drop?
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 25 Jul 2008 20:42:04 -0500

On Jul 25, 2008, at 6:51 PM, Jacob Ole Juul Kolding wrote:

I been searching for quite a while and reading the source code for DockScript by still no luck.
Can anyone tell me how to make an Cocoa app launch when a file is drag 'n droped on it's icon?

Well, it does so by default -- if the drop is permitted. The Dock decides if the drop is permitted based on the document types that the application claims to handle in its Info.plist file.


http://developer.apple.com/documentation/MacOSX/Conceptual/ BPRuntimeConfig/Articles/ConfigApplications.html
http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/ Concepts/DocTypePList.html


By the way, you can force the Dock to accept the drop, regardless of the claimed document types, by holding down Command and Option.

Cheers,
Ken
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: (Newb question?) Launching app on dock icon file drop?
      • From: Jacob Ole Juul Kolding <email@hidden>
References: 
 >(Newb question?) Launching app on dock icon file drop? (From: Jacob Ole Juul Kolding <email@hidden>)

  • Prev by Date: Re: (Newb question?) Launching app on dock icon file drop?
  • Next by Date: Re: Repositioning a content view w/in a window
  • Previous by thread: Re: (Newb question?) Launching app on dock icon file drop?
  • Next by thread: Re: (Newb question?) Launching app on dock icon file drop?
  • Index(es):
    • Date
    • Thread