Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Building GUI for existing application

Building GUI for existing application
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2004
Status: Offline
Reply With Quote
Mar 23, 2004, 09:22 AM
 
Hello

I'm new to Mac and programming, what i want to do is build
GUI for a simple app that till now runs in terminal window.
I dont know if I can do it with Interface Builder from Xtools
or maybe there is other way to do it.
What i want is build GUI for this:

# application -f <server IP>
output code output code output code
output code output code output code
output code output code output code

after that just debug and info about connection to server, i want to include inhis info/debug text it in my GUI.
Basicly it is a interface to running console in background.
So what can I use to build GUI for it?

Thanks in advance
Mike
     
Grizzled Veteran
Join Date: Jun 2002
Status: Offline
Reply With Quote
Mar 23, 2004, 04:18 PM
 
I believe NSTask is normally used to wrap GUI's around Terminal commands. Look it up at cocoa.mamasam.com

Thanks,
Oliver
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 23, 2004, 04:37 PM
 
Originally posted by iOliverC:
Look it up at cocoa.mamasam.com
Or maybe Apple's documentation.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Enthusiast
Join Date: Aug 1999
Location: Calgary, Alberta, Canada
Status: Offline
Reply With Quote
Mar 24, 2004, 12:06 AM
 
There's a nice little sample code called Moriarty that deals specifically with wrapping command-line apps in a Cocoa interface. See http://developer.apple.com/samplecod...Moriarity.html.
     
Forum Regular
Join Date: Aug 2001
Location: Vienna, Austria
Status: Offline
Reply With Quote
Mar 24, 2004, 07:45 AM
 
You might want to take a look at my articles on cocoadevcentral about that topic:

Part 1
Part 2
     
xequtor  (op)
Fresh-Faced Recruit
Join Date: Mar 2004
Status: Offline
Reply With Quote
Mar 25, 2004, 03:57 AM
 
Thanks for help!
I"ll try to collect your info and code my app.
Programing on Mac it is not so easy as i thought.
Mike
     
Dedicated MacNNer
Join Date: Jun 2001
Location: Madrid
Status: Offline
Reply With Quote
Mar 25, 2004, 07:55 AM
 
You may also use REALBasic to do that.
Check out www.basasoft.com products:
CodeLine (Do Cocoa programming in BASIC)
BasaOne 2.0
AFDragHandler 1.1
BasaOne Web Classes
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Mar 25, 2004, 10:26 AM
 
Originally posted by RealMadrid:
You may also use REALBasic to do that.
But why would you want to?
     
Registered User
Join Date: Apr 2003
Location: The Internets
Status: Offline
Reply With Quote
Mar 25, 2004, 10:49 AM
 
Because it will be the fastest way to do it.

Becuase he wants it done fast.

Because unless his terminal app is Blast he should be fine.

Because he may want to port this app to linux or windows which can be done in RB but not cocoa.

Becuase he wants it done fast.

Of course you could volunteer to do it for him.... I bet that would be the fastest way...

insert here
     
xequtor  (op)
Fresh-Faced Recruit
Join Date: Mar 2004
Status: Offline
Reply With Quote
Mar 25, 2004, 12:56 PM
 
Actual my aim is to learn to code on Mac in Cocoa/Xcode so i try first to build some GUI.
This app i tray to build GUI has already GUI on Linux and Win.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:04 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2