• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Newbie] Drag'n drop on doc icon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [Newbie] Drag'n drop on doc icon?
      • From: whamoo <email@hidden>
References: 
 >[Newbie] Drag'n drop on doc icon? (From: whamoo <email@hidden>)

  • Prev by Date: Compositing NSViews for print
  • Next by Date: Re: [Newbie] Drag'n drop on doc icon?
  • Previous by thread: [Newbie] Drag'n drop on doc icon?
  • Next by thread: Re: [Newbie] Drag'n drop on doc icon?
  • Index(es):
    • Date
    • Thread