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 > XWindow app in Quartz?

XWindow app in Quartz?
Thread Tools
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
Sep 19, 2002, 09:15 AM
 
I have an X Windows app running fine in XDarwin. I also have the source code for this app from which I compiled it.

I have no idea how difficult a task this might be, but what steps would be necessary to get the UI out of X Windows and into Aqua/Quartz. Is it possible to use Interface builder to build a UI around it? Is there a way to translate the buttons to something Quartz knows?

The UI isn't very extensive. There are maybe a dozen buttons, a couple text fields that display information and I think there's 1 dialog for each button. That's about it.

There is also a command-line version of the app. It does the same thing but without the UI. Each is built separately though and I don't believe either relies on the other.

The program is SPIM. I don't know if that helps anyone answer my question.

Thanks.
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Sep 19, 2002, 04:47 PM
 
It completely depends upon the application. If the seperation between GUI and implementation is good, it shouldn't be too tough.

Yeah, I know this isn't a very helpful answer.

You could also look at using NSTask to talk to the command-line-only version.
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
Fresh-Faced Recruit
Join Date: Feb 2001
Status: Offline
Reply With Quote
Sep 19, 2002, 06:35 PM
 
Originally posted by Xeo:
I have an X Windows app running fine in XDarwin. I also have the source code for this app from which I compiled it.

I have no idea how difficult a task this might be, but what steps would be necessary to get the UI out of X Windows and into Aqua/Quartz. Is it possible to use Interface builder to build a UI around it? Is there a way to translate the buttons to something Quartz knows?

The UI isn't very extensive. There are maybe a dozen buttons, a couple text fields that display information and I think there's 1 dialog for each button. That's about it.

There is also a command-line version of the app. It does the same thing but without the UI. Each is built separately though and I don't believe either relies on the other.

The program is SPIM. I don't know if that helps anyone answer my question.

Thanks.
Actually, if it is a pretty simple app, you could just write a front-end in ASStudio. If there is a command line version, it is even better, as you could just issue:

do shell script blah

There is also a bridge from ASStudio to Obj-C, so might as well start from the former.
     
Senior User
Join Date: Mar 2001
Location: Bay Area, CA
Status: Offline
Reply With Quote
Sep 20, 2002, 12:42 AM
 
I haven't looked at them that carefully, but there is some sample code on the Apple developer site that claims to be pretty much what you are looking for, wrapping a command line program in a cocoa GUI.

http://developer.apple.com/samplecod.../Moriarity.htm

and

http://developer.apple.com/samplecod...MP3_Player.htm

Probably worth taking a peek at,
     
   
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 01:48 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