• 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: Andrew Farmer <email@hidden>
  • Date: Wed, 10 Dec 2008 14:35:28 -0800

On 10 Dec 08, at 13:47, Shayne Wissler wrote:
I have a Cocoa application that I am compiling in the traditional UNIX
manner using Makefiles and I want to be able to invoke it with
command-line arguments and without creating/installing it like
traditional OSX apps, as in "x.app/Contents/MacOS/x". When I tried the
usual thing that works on UNIX, compiling to binary and just running
it, my application got mouse events but no keyboard events, among
other strange things.

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?

I'm not sure, but I can tell you that mplayer does what you're talking about and works fine. You may want to take a look at how they do it.
_______________________________________________


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


  • Follow-Ups:
    • Re: Starting Cocoa apps from the command line
      • From: Jason Stephenson <email@hidden>
References: 
 >Starting Cocoa apps from the command line (From: "Shayne Wissler" <email@hidden>)

  • Prev by Date: Re: Table view containing cells with both an image and text
  • Next by Date: Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
  • 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