Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
- Subject: Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
- From: Jim Correia <email@hidden>
- Date: Thu, 24 Jan 2002 14:18:38 -0500
On Thursday, January 24, 2002, at 12:57 PM, Eric Peyton wrote:
Um - it's *real* easy in Cocoa.
Add an application delegate that responds to the message ...
- (BOOL)application:(NSApplication *)sender openFile:(NSString
*)filename
The file is passed as the filename ...
The only catch here is that if you want to process the files in batches,
this technique doesn't "work" since it sends you files one at a time.
If you need to know that the user dropped 3 files on the app and process
them as a group, you can use the technique that DropScript uses. It is
in the Darwin repository. (Applications/DropScript)
Jim