|
#1
| |||
| |||
| Giving a CLI app an Aqua window - how easy? Hya, I have a small CLI app that I have written for my work. Is it possible using Apple's Developer Tools to make it launch and operate within a single Finder window? If so could somebody point me in the direction of some instructions. Thanks in advance will |
|
#2
| ||||
| ||||
| What's CLI? What source code is it written in? If it's compatible with one of the languages in Project Builder, use Interface Builder to create the interface.
__________________ System: • 2.5 GHz MacBook Pro Core 2 Duo, 4 GB RAM, 200 GB hard drive, runs 10.5.4 • 1.6 GHz iMac G5, 1.5 GB RAM, 250 GB hard drive, runs 10.4.11 • iPhone, 4 GB, OS X 2.0.2 |
|
#3
| |||
| |||
| CLI = Command Line Interface, so basically it's a console app, and I'm guessing it's written in C/C++? Probably the easiest thing to do is port it into a GUI app. Take Project Builder and start a new Cocoa app project. Objective-C is a superset of C so if your CLI app was written in C you can make the same calls to the C runtime library mixed in Objective-C code. Same goes for C++. That are articles (try www.macdevcenter) that discuss how to mix these languages. But the idea is to take the existing code and inject it into a GUI framework code.
__________________ vacant lot |
|
#4
| ||||
| ||||
| its also pretty easy to write applescript to do this. While apple script will not allow real-time control of a cli app, it is an extremely easy way to allow non-cli users to use a cli application. At any rate, its probably easier than compiling your code into a cocoa app.
__________________ irc.lfnet.net #kilonet -+=join in=+- Quote:
Audio Engineer - ProTools and Logic Pro Certified. FCC Licensed RF Technician |
|
#5
| ||||
| ||||
| Oh, and if you would like to see this in action, a front end to 'nmap' (cli port scanning tool) written in applescript is avaliable on my site: http://lfnet.net/index-old.html I no longer maintain it, but there's enough code there for you to see how this is done. |
|
#6
| ||||
| ||||
| Developer/Documentation/Darwin/GettingStarted/PortingUNIX/PortingUNIXToOSX.pdf partially addresses this issue. Other tutorials and docoumentation on InterfaceBuilder and ProjectBuilder are available in the Documentation directory and online at developer.apple.com
__________________ This is not a signature (but I could be wrong). 15" MacBook Pro C2D@2.4 GHz | 2 GB RAM | Mac OS 10.5.4 | Website | LinkedIn | Publications GP/O d-(+)@ s: a->? C++(+++) U* P+ L+>++ !E---- W+++ N o? K? w--- O? M++ V? PS+++ PE-- Y+ PGP t 5? X- R !tv b++++ DI+(++)@ D+(++) G++(+++) e+++$>++++$$ h--->---- r+++ y++++@ |
|
#7
| ||||
| ||||
| Off-topic... I found this odd... Where did the your signature go?
__________________ System: • 2.5 GHz MacBook Pro Core 2 Duo, 4 GB RAM, 200 GB hard drive, runs 10.5.4 • 1.6 GHz iMac G5, 1.5 GB RAM, 250 GB hard drive, runs 10.4.11 • iPhone, 4 GB, OS X 2.0.2 |
|
#8
| |||
| |||
| Thanks for all of you're advice. First of all, apologies for the lack of detail in my post. Yes the app does run in the console and it has been written in C++. Will have a look at the InterfaceBuilder and ProjectBuilder docs and take it from there. Thanks again will |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Some changes for 10.3 | Arden | Opinions, & Open Letters | 132 | June 9th, 2003 07:54 PM |
| OS-X enhancement: window focus, no raise | gweber | Opinions, & Open Letters | 1 | November 4th, 2002 08:58 AM |
| Easy way to print window contents | genghiscohen | Mac OS X System & Mac Software | 2 | October 16th, 2002 02:14 PM |
| Aqua X window manager | patzoul | Mac OS X System & Mac Software | 1 | January 4th, 2002 11:13 PM |
| the easy way to program/use the terminal window... how work that language? how to lea | ronin_X | Apple News, Rumors & Discussion | 12 | September 20th, 2001 11:23 AM |