| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
|
Guest
Posts: n/a
|
Ok very beginner question here,
I have a unix executable file on my computer, I can't figure out how to put it into an application with an icon and file associations. I understand that you can create applications and bundles using XCode but how do i create one that simply just runs the executable when you click on the icon? Please Help. |
| QUOTE Thanks | |
![]() Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
|
I've noticed you've asked several newbie questions. From what I can tell you need to buy a book. A highly praised one is "Cocoa Programming for Mac OS X". Get the second edition which is the current printing. Page 161 answers your question if your building a standard Cocoa app. The answer is a bit lengthy to post here, and dated for how one gets to the appropriate panel. I'm half way through this book so am (re)learning too.
If your building a command line app, I'm not sure you can associate a custom icon for it. But you can double click them and they will open in a Teminal window. The shortest answer I can give for a Cocoa type app is; Click on the target program name in Xcode, under the Project menu select Edit Active Target <your program name>". Under the Info.plist Entries select Document Types. Name seems to be your program's name. And extension is what your looking for. Now you just need the code to write/read your file.
|
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| beginner | jdpfeil | iPod Hardware and Accessories | 2 | 03-23-2006 12:42 AM |
| Beginner Mac Developer | mh10190 | OS X - Development and Darwin | 1 | 12-04-2005 04:02 PM |
| dreamweaver beginner | brianwithan eye | Web Design and Hosting | 4 | 07-26-2005 02:20 PM |
All times are GMT -4. The time now is 09:57 AM.
Powered by vBulletin