Cocoa/Java - How to get files dropped onto app from Finder
Cocoa/Java - How to get files dropped onto app from Finder
- Subject: Cocoa/Java - How to get files dropped onto app from Finder
- From: Philippe Laval <email@hidden>
- Date: Thu, 13 Jun 2002 12:44:25 +0200
You just need to impement the applicationOpenFile function. Seen the
documentation about NSApplication
Methods Implemented By the Delegate
public abstract boolean applicationOpenFile( NSApplication
theApplication, String filename)
Sent directly by theApplication to the delegate. The method should open
the file filename, returning true if the file is successfully opened,
and false otherwise. If the user started up the application by
double-clicking a file, the delegate receives the applicationOpenFile
message before receiving applicationDidFinishLaunching.
( applicationWillFinishLaunching is sent before applicationOpenFile.)
_______________________________________________
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.