Re: [Newbie] Drag'n drop on doc icon?
Re: [Newbie] Drag'n drop on doc icon?
- Subject: Re: [Newbie] Drag'n drop on doc icon?
- From: Clark Cox <email@hidden>
- Date: Wed, 12 Jan 2005 07:44:59 -0500
On Wed, 12 Jan 2005 13:02:18 +0100, whamoo <email@hidden> wrote:
> Hello to all,
>
> A little question, i've an application (non document based), that
> process images, and users can open directory and image file by a
> Menu->File->Open...
>
> But i want also that users can drop the file directly on doc icon, for
> now, this work on first launch because i can catch the app args, but it
> will be nice that this work also when the app is already open....
> When user click on dock icon, i'll catch event by
> "appShouldHandleReopen" but in which way i can obtain the list of item
> dropped on the icon? (with the full path obviously)
Look at the NSApplication delegate methods:
- (BOOL)application:(NSApplication *)sender openFile:(NSString *)filename;
- (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames;
--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden