Re: Cocoa applications as "droplets"
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.