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: whamoo <email@hidden>
- Date: Wed, 12 Jan 2005 14:29:25 +0100
On 12/gen/05, at 13:44, Clark Cox wrote:
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;
Ehi tanks a lot ;-)
Now all works, only one more question, why when i open my app it
doesn't has focus? And "ApplicationDidFinishLaunching" is called only
when i click on my window giving focus?
Thanks =)
Whamoo www.rknet.it
Powered by:
- MacOsX
- Gnu / Linux Debian Sarge
- Amiga Os 3.9
- Milk
_______________________________________________
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