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: Ryan Chapman <email@hidden>
- Date: Mon, 17 Mar 2008 12:00:38 -0700 (PDT)
Is there any way to get this information from within a command-line utility?
In my case, I have a command-line utility wrapped up in an application bundle, so I
really don't need any GUI stuff, but I thought I could use the Cocoa classes
to get the filename sent without launching a GUI.
----- Original Message ----
From: Jens Alfke <email@hidden>
To: Ryan Chapman <email@hidden>
Cc: email@hidden
Sent: Monday, March 17, 2008 1:06:09 PM
Subject: Re: In receiver application, getting file passed in from NSWorkspace openFile:withApplication:
On 17 Mar '08, at 9:56 AM, Ryan Chapman wrote:
> In MaxPostProcessing.app, how can I determine the file that was the
> parameter passed to openFile: ??
In your class that's the NSApplication's delegate, implement the method
- (BOOL)application:(NSApplication *)sender openFile:(NSString
*)filename;
—Jens
_______________________________________________
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