Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.programming Subject: Re: PC and Mac GUI? Date: Thu, 04 Sep 2014 17:19:46 +0100 Organization: A noiseless patient Spider Lines: 26 Message-ID: <87d2bbtl25.fsf@bsb.me.uk> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="18024"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Asswm6t+cb7rW+qieCpws/rA+SPUzLmw=" Cancel-Lock: sha1:QhS3eAvgyfRbx8LWefPm5KeSJCU= sha1:fuuFjlA11fkJ5WnoiJgCv5et88E= X-BSB-Auth: 1.25c27d972bf2b835a9ab.20140904171946BST.87d2bbtl25.fsf@bsb.me.uk Xref: csiph.com comp.programming:4745 Mark Storkamp writes: > I have a program written in C that gets run on both a Mac and a Windows > PC. I wrote it to use the command line so I could easily compile for > either environment. > > The program has a dozen or so command line switches, then runs > uninterrupted until it finishes its task. > > It could really use a GUI front end to select the options on the command > line before it runs. I could easily write that in Objective-C for the > Mac, but then that wouldn't run on the PC. I haven't programmed Windows > since 3.0 and I don't have the tools to it now anymore. > > Is there some (probably interpreted) language that can run the same code > on both Mac and PC, present the user with a dialog box for options, > build up a command line, and then execute the existing command line > program? I have found command-line driven dialog programs like zentity to be fine for simple cases. I've switched to "yad" for my own stuff because it does a bit more and it does it a bit better but I don't think it's available for Windows (zenity is). -- Ben.