• 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 applications as "droplets"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa applications as "droplets"


  • Subject: Re: Cocoa applications as "droplets"
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 24 Nov 2003 10:40:05 -0500

while that is one way... it's also possible to just use the NSApplication delegate methods that will open a dropped file

 application:openFile:

 application:openFiles:

 application:openFileWithoutUI:

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSApplication.html#//apple_ref/occ/ cl/NSApplication>

That really is the better way. You'll get a message for each dropped file (or a message for the dropped files)


On Nov 24, 2003, at 9:56 AM, Stiphane Sudre wrote:

As written in the list archives.

NSArray *myArgs = [[NSProcessInfo processInfo] arguments];

Maybe it will help.

On Monday, November 24, 2003, at 03:25 PM, Sean Gilbertson wrote:

All,

I like the ability of applescripts to capture launch arguments so easily, especially with the semantics of a drag-and-drop application. Obviously, a C application comes with argc and argv, so I'm wondering if Cocoa provides any useful facilities for doing this -- perhaps something similar to an NSApplicationDidFinishLaunchingNotification, with useful "userInfo."
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Cocoa applications as "droplets"
      • From: Sean Gilbertson <email@hidden>
References: 
 >Re: Cocoa applications as "droplets" (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: Cocoa applications as "droplets"
  • Next by Date: Cocoa Building Error
  • Previous by thread: Re: Cocoa applications as "droplets"
  • Next by thread: Re: Cocoa applications as "droplets"
  • Index(es):
    • Date
    • Thread