• 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: receiving a file on app startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: receiving a file on app startup


  • Subject: Re: receiving a file on app startup
  • From: Torsten Curdt <email@hidden>
  • Date: Sun, 3 Feb 2008 22:34:17 +0100


On 03.02.2008, at 22:01, PGM wrote:

I would like a Cocoa application to accept files on startup. As an example - you can drop images onto the photoshop icon which will start the application and open the images. As this is not really drag-and-drop in the sense of what you find via Google, it would be great to get some pointers here.


It's actually quite simple, if your app can open the file, the app will start up and open it when you drop it on your icon. Did you actually try?

Of course :)

I've used the default XCode templates (document and non-document based). Now when I try to drag something onto that application - I just can't. Do I maybe just need to enable that application for the particular file type? An what happens if the app is not document based?

As a little test project I would like to receive the file and just save it to /tmp.

cheers
--
Torsten
_______________________________________________

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: receiving a file on app startup
      • From: Quincey Morris <email@hidden>
    • Re: receiving a file on app startup
      • From: PGM <email@hidden>
References: 
 >receiving a file on app startup (From: Torsten Curdt <email@hidden>)
 >Re: receiving a file on app startup (From: PGM <email@hidden>)

  • Prev by Date: Re: receiving a file on app startup
  • Next by Date: NSOutlineView: How does Cocoa determine a click in a cell can start a drag operation?
  • Previous by thread: Re: receiving a file on app startup
  • Next by thread: Re: receiving a file on app startup
  • Index(es):
    • Date
    • Thread