• 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: In receiver application, getting file passed in from NSWorkspace openFile:withApplication:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: In receiver application, getting file passed in from NSWorkspace openFile:withApplication:


  • Subject: Re: In receiver application, getting file passed in from NSWorkspace openFile:withApplication:
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 17 Mar 2008 10:22:08 -0700


On 17 Mar '08, at 10:06 AM, Robert Tillyard wrote:

If you're looking fot the equivalent of argc/argv you might be looking for...

NSProcessInfo *procInfo = [NSProcessInfo processInfo];
NSArray *args = [procInfo arguments];

But documents to be opened are never passed through argv; they're sent as AppleEvents and passed to the NSApplication's delegate.
There's almost never a need to access argv from a GUI app.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >In receiver application, getting file passed in from NSWorkspace openFile:withApplication: (From: Ryan Chapman <email@hidden>)
 >Re: In receiver application, getting file passed in from NSWorkspace openFile:withApplication: (From: Robert Tillyard <email@hidden>)

  • Prev by Date: Re: Distributed Objects NSPortTimeoutException
  • Next by Date: NSPanel mimic menu behavior
  • Previous by thread: Re: In receiver application, getting file passed in from NSWorkspace openFile:withApplication:
  • Next by thread: Re: In receiver application, getting file passed in from NSWorkspace openFile:withApplication:
  • Index(es):
    • Date
    • Thread