Re: Cocoa applications as "droplets"
Re: Cocoa applications as "droplets"
- Subject: Re: Cocoa applications as "droplets"
- From: Scott Anguish <email@hidden>
- Date: Mon, 24 Nov 2003 10:40:05 -0500
while that is one way... it's also possible to just use the
NSApplication delegate methods that will open a dropped file
application:openFile:
application:openFiles:
application:openFileWithoutUI:
<
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSApplication.html#//apple_ref/occ/
cl/NSApplication>
That really is the better way. You'll get a message for each dropped
file (or a message for the dropped files)
On Nov 24, 2003, at 9:56 AM, Stiphane Sudre wrote:
As written in the list archives.
NSArray *myArgs = [[NSProcessInfo processInfo] arguments];
Maybe it will help.
On Monday, November 24, 2003, at 03:25 PM, 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."
_______________________________________________
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.