• 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: Starting Cocoa apps from the command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Starting Cocoa apps from the command line


  • Subject: Re: Starting Cocoa apps from the command line
  • From: Bruce Martin <email@hidden>
  • Date: Thu, 11 Dec 2008 13:48:29 -0500

If it has an interface then I would suggest following the HIG. However it sounds like you have a tool for the commandline and there is an option to create that in Xcode, AFAIK.

Bruce Martin
The Martin Solution
email@hidden
http://www.martinsolution.com
http://externals.martinsolution.com

On Dec 11, 2008, at 1:42 PM, Shayne Wissler wrote:

Hi Bill,

I've got an application that isn't specifically for the Mac, and I
want the same standard user-experience whether they are on the Mac or
on Windows or on Linux. I want them to be able to run this program
from the command line by directly using the binary (without calling
"open"), to have it print messages to their terminal (something open
doesn't do), etc. Just like an X application would work on Linux. I
don't want for it to be required to have a .app directory with plists
or nibs or anything other than just my binary.


Shayne

On Thu, Dec 11, 2008 at 11:22 AM, Bill Bumgarner <email@hidden> wrote:
Is there a way to do this without making some kind of wrapper caller
that generates the directory and a script or some such? Or is it
wholly frowned upon to do what I'm wanting, and if so, why does it
half-work rather than fail with a decent error message?

There is -- see Eric's followup for a clue -- but is wholly frowned upon and
will lead to a non-standard user experience.


Without knowing what you have done, it is hard to tell why it half- works.

You can either post more details about what you have done and continue down
this path.


Or you could give a bit of information about what you are trying to do and
see if someone might suggest a path that is a bit more standard and,
subsequently, considerably easier.


In Cocoa, if something seems absurdly hard to do, it is most likely because
the something is wrong.


b.bum

_______________________________________________

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

_______________________________________________

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: 
 >Starting Cocoa apps from the command line (From: "Shayne Wissler" <email@hidden>)
 >Re: Starting Cocoa apps from the command line (From: "Shayne Wissler" <email@hidden>)
 >Re: Starting Cocoa apps from the command line (From: Bill Bumgarner <email@hidden>)
 >Re: Starting Cocoa apps from the command line (From: "Shayne Wissler" <email@hidden>)

  • Prev by Date: Re: Starting Cocoa apps from the command line
  • Next by Date: Re: Starting Cocoa apps from the command line
  • Previous by thread: Re: Starting Cocoa apps from the command line
  • Next by thread: Re: Starting Cocoa apps from the command line
  • Index(es):
    • Date
    • Thread