English 中文(简体)
How to Wrap a Commad Line Executable In a .app Package?
原标题:

I wrote an OpenGL+GLUT game for Mac OS X that s currently launched through the command line. I d like to make opening the game more user-friendly by putting it into a .app package, so regular users would be able to open the game like any other program. What s the best way to do this?

问题回答

AppleScript or Platypus.

Best way to do this is to simply go and use XCode.

  1. Create new project. (You can make it blank.)
  2. Create a target, if necessary. Blank projects don t come with targets.
  3. Minimally, add OpenGL.framework into the project. You may need to add Cocoa, Carbon and other frameworks, depending on what you used. If you used SDL or GLUT, add their frameworks as well.
  4. Finally, add all source files into the project. Don t forget to add them into the target you created.

It s also customary to add all your resources to the project, so they get copied into the .app. Then, access the resources by fopen()ing from your.app/Contents/Resources.

If you have more specific questions, feel free to update your question or create a new one and I ll do what I can to help. (You can drop a comment to this answer if/when you update/create question.)





相关问题
How to start to create an application GUI using C#?

HI! I am new to C# and plan to use it for my application GUI. I am trying to make my GUI similar to SPSS:http://www.spss.com/images/08/statistics_screens/ez_rfm-big.jpg Is this easy in C#? Is there ...

Automatic height of edit box

My shoes application has three items stacked on top of each other (with a stack, of course), in order: A banner An edit box Two buttons in a flow What I want to do is have the banner stay at it s ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

UI Convention: Shortcut key for application exit? [closed]

Is there a convention for the shortcut keys for application exit? Some applications uses Alt+X some others use Ctrl+ X and Ctrl+Q. Applications like FF and IE doesnot assign a shortcut at all. So is ...

热门标签