• 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: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa) (From: Eric Peyton <email@hidden>)

  • Prev by Date: Re: NSTabView without tabs
  • Next by Date: Re: Implementing Open Document AE in Cocoa
  • Previous by thread: Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
  • Next by thread: Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
  • Index(es):
    • Date
    • Thread