• 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: Can we get command line arguments in applicationShouldHandleReopen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Can we get command line arguments in applicationShouldHandleReopen? (From: Hirendra Rathor <email@hidden>)

  • Prev by Date: Re: App Delegate Methods
  • Next by Date: User Defaults Controller Binding
  • Previous by thread: Can we get command line arguments in applicationShouldHandleReopen?
  • Next by thread: Re: Can we get command line arguments in applicationShouldHandleReopen?
  • Index(es):
    • Date
    • Thread