Re: Can we get command line arguments in applicationShouldHandleReopen?
Re: Can we get command line arguments in applicationShouldHandleReopen?
- Subject: Re: Can we get command line arguments in applicationShouldHandleReopen?
- From: Shawn Erickson <email@hidden>
- Date: Fri, 08 Jul 2011 07:30:34 -0700
On Fri, Jul 8, 2011 at 7:13 AM, Hirendra Rathor <email@hidden> wrote:
> The idea is to launch the application with different arguments so that it can do different
> stuff every time.
That isn't going to work. If the application is always running it
cannot be relaunched with new command line parameters. Also command
line parameters are seldom the right way to do something on Mac OS X
with bundled applications (.app).
You likely want to look at using AppleEvents and/or URL handlers for
this... or maybe more advanced launch agent / launch daemon with IPC.
-Shawn
_______________________________________________
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