I need "SIOW" (Re: Programing X11 with Carbon)
I need "SIOW" (Re: Programing X11 with Carbon)
- Subject: I need "SIOW" (Re: Programing X11 with Carbon)
- From: Mamoru Yamanishi <email@hidden>
- Date: Sat, 29 Apr 2006 21:53:56 -0500
Thanks for your comment.
You probably need to make sure your version of RasMol is a true OSX
application - i.e. it lives in an application bundle, with all the
junk that's supposed to go in there, too (icons, version info, lists
of file types it can open, etc.) It's perfectly possible for a normal
OSX application to make use of X11 calls (see OroborOSX for an
example) if you're careful to ensure that name/structure definition
collisions (i.e. defined by both Carbon and X11) are kept separate, or
dealt with in some clever fashion.
I did not check "OroborOSX", but this suggestion was quite useful.
Since RasMol is X11 application, I used "xmkmf;make;makeinstall" but
not Xcode.
On the other hand, the sample "X11CallCarbonAndCocoa" was build with
Xcode.
Now I used Xcode. The result become little bit better. It runs with
debugger.
Also I could launch from "Terminal" by typing full-path to the compiled
binary.
It did not run by clicking application icon.
Even if the program runs by clicking application icon, the next problem
is a terminal,
or console. I need a kind of "SIOW".
I used "Platypus" to launch X11.app and to set several environmental
variables for
RasMol. However, I 'm not sure to do the same thing if I can make
Carbon aware
version of RasMol. Probably, it works to use system("open open-x11")
or similar
codes. On the other hand, I have no idea to path environment variables.
Have you created an OSX Carbon (or Cocoa) application before? If not,
I suggest you take a look at the examples provided with XCode - that
should set you on the right track.
I started programming for MacOS (ti was not MacOS) with MPW. I
remember I was
very suppressed at idea and excellence of Toolbox and Resource.
However, it was
too old. Recently, I cannot follow new technology and new idea.
Honestly saying,
it become too complicate and dirty. I do not want to be modern MacOS X
programmer.
If I have time to learn modern programming, I will be sure to do with
Qt. It gives
multiple platform aware application very easily, I guess.
I became 41 years old, today. I know my programming skill have not
been improved
since past twenty years.
Mamoru Yamanishi, Ph.D. <email@hidden>
Research Assistant Professor
Dr. Banerjee's Laboratory, Biochemistry Department
University of Nebraska-Lincoln
--
N131 Beadle Center, UNL 0664
Lincoln, NE 68588-0664
(402) 472-9507/4961(fax)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden