Subject:
|
Re: L3P v1.3 for Mac OSX
|
Newsgroups:
|
lugnet.cad.dev.mac
|
Date:
|
Fri, 6 Dec 2002 00:54:22 GMT
|
Viewed:
|
1622 times
|
| |
| |
In lugnet.cad.dev.mac, James Reynolds writes:
> > Essentially the \r make it one big line. L3P says it has the wrong number of
> > fields. Maybe it reads the buffer limit and tries again because there is a
> > variety of error messages per file.
>
> I think ldglite has this same problem. Remember when we had the discussion
> about using the linux parts vs. the parts that Erik has for download? I could
> not get Erik's parts to work with l3p either.
>
> > I'm looking at how to fork L3P from my Carbon app. The cleanest way might be
> > to send a "Do Shell Script" Apple Event to the Terminal. (This will fail
> > gracefully on Mac OS 9 or older.) I would make a "Run L3P" dialog in
> > BrickDraw3D that allows choices of options. The options would default to the
> > last camera position used in BrickDraw3D.
>
> You can mix Cocoa and Carbon, can't you? If you could, you would have to wrap
> L3P in an NSTask. Apple's developer site has some example scripts you could
> check out, you can find discussion of this from Google too, and I am working on
> an L3P wrapper too. Isn't there a generic system call in ANSI C?... (I really
> don't know, it just seems like there should be)
These might not be the cleanest solution. I want the same binary to launch
on OS 8.6 or 9. But I think you can still try to bring in a Cocoa framework
at runtime to a CFM process though. CFM is required on OS 9. Mixing Cocoa
and Carbon is supposed to be better if you start with a Mach-O Carbon app
(Cocoa is Mach-O.)
Metrowerks MSL doesn't implement fork, popen, system, or exec. Calling them
in the POSIX framework might be similar to calling a Cocoa framework.
Here is an AppleScript to run L3P:
tell application "Terminal"
do script with command "setenv LDRAWDIR /Development/Lego.CAD/LDRAW/;
/Development/Lego.CAD/l3p/l3p -o pyramid"
end tell
|
|
Message has 1 Reply:
Message is in Reply To:
| | Re: L3P v1.3 for Mac OSX
|
| (...) I think ldglite has this same problem. Remember when we had the discussion about using the linux parts vs. the parts that Erik has for download? I could not get Erik's parts to work with l3p either. (...) You can mix Cocoa and Carbon, can't (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
|
42 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|