Re: In receiver application, getting file passed in from NSWorkspace openFile:withApplication:
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