• 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: Implementing Open Document AE in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing Open Document AE in Cocoa


  • Subject: Re: Implementing Open Document AE in Cocoa
  • From: Finlay Dobbie <email@hidden>
  • Date: Thu, 24 Jan 2002 19:18:27 +0000

On Thursday, January 24, 2002, at 05:21 PM, Stiphane Sudre wrote:

On Thursday, January 24, 2002, at 05:44 PM, Taxxodium wrote:

How do you implement the Open Document AppleEvent from Carbon in Cocoa. You
know, the action of dropping a file into your apps icon and open that file.

IIRC

application:openFile:

- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename

Note that this is an NSApplication delegate method and therefore must be implemented by, uh, you're NSApplication delegate :-)

-- Finlay


References: 
 >Re: Implementing Open Document AE in Cocoa (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
  • Next by Date: Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
  • Previous by thread: Re: Implementing Open Document AE in Cocoa
  • Next by thread: Window-closing sequence in a Document-based App
  • Index(es):
    • Date
    • Thread