• 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: Cocoa applications as "droplets"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa applications as "droplets"


  • Subject: Re: Cocoa applications as "droplets"
  • From: Jim Balhoff <email@hidden>
  • Date: Mon, 24 Nov 2003 09:49:31 -0500

On Monday, November 24, 2003, at 09:25 AM, Sean Gilbertson wrote:

All,

I like the ability of applescripts to capture launch arguments so easily, especially with the semantics of a drag-and-drop application. Obviously, a C application comes with argc and argv, so I'm wondering if Cocoa provides any useful facilities for doing this -- perhaps something similar to an NSApplicationDidFinishLaunchingNotification, with useful "userInfo."

Thanks,
Sean


If you make your application a "Document-Based Application" <http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/ index.html>, dropping a file onto its icon has the same effect as using the "Open..." menu item. It's all automatic, and will even be automatically set up to process a "multiple selection" drop as well.

Hope this helps,
Jim Balhoff
_______________________________________________
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.

References: 
 >Cocoa applications as "droplets" (From: Sean Gilbertson <email@hidden>)

  • Prev by Date: Debugging not working in Xcode 1.0.1
  • Next by Date: Re: Cocoa applications as "droplets"
  • Previous by thread: Cocoa applications as "droplets"
  • Next by thread: Re: Cocoa applications as "droplets"
  • Index(es):
    • Date
    • Thread