Re: [gtk+osx] window is visible but does not accept focus
Status: Beta
Brought to you by:
jralls
From: Michael M. <stu...@gm...> - 2005-07-10 13:43:18
|
David Burnett wrote: > KieSoft wrote: > >> Hi! >> >> I'm trying to port my Linux app on MAC OS X. I can compile the code and >> window is visible but does not accept focus, nor is it movable. I thought >> that's my problem and wrote a small GTK app. I get the same result >> with that >> test app too: window does not accept focus. Can you help me to solve the >> problem? > > > Its an old issue.For some reason Apple have made it awkward to make > command line programs > have a GUI. There's a number of way's around this, the easiest is to > wrap the executable in a bundle. > > There is also a way to add a resource, I'm not to clear about it but the > FLTK GUI tool set has > a program that can do it, although IIRC it's just a script and a > resource file. > > > Dave If you can use a script of some sort to launch your program, I'd recommend Platypus ( http://sveinbjorn.sytes.net/platypus ). I've used it for several programs and it works great. The program that uses it that you've most likely used is Gimp.app (the GiMP packaged for OSX). Michael Moore |