To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.macOpen lugnet.cad.dev.mac in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Macintosh / 293
292  |  294
Subject: 
Re: L3P v1.3 for Mac OSX
Newsgroups: 
lugnet.cad.dev.mac
Date: 
Fri, 29 Nov 2002 15:48:13 GMT
Viewed: 
1527 times
  
In article <H6BtyJ.M9M@lugnet.com>,
"James Reynolds" <james@scl.utah.edu> wrote:

and I noticed something strange. I don't know if the problem is with
POV-Ray 3.1g.r2 for Mac OS 9 and POV-Ray 3.5 for Mac OS X

The problem is with POV-Ray 3.5 for Mac OS X.  Check out
http://mac.povray.org/support/faq.html.  Can you believe an app will crash
every time it opens a new document?  Anyway, within POV-Ray I just create a
new document and open the real one in BBEdit, then copy and paste.  Kinda a
major hastle...  It has to be some wierd Carbon thing they are doing.  I
haven't seen any other app behave like theirs.

Ahh... I see. I forgot that the three different ways of openning a file
often behave quite differently.

1. Double clicking the mini.pov file

2. Dropping the icon for mini.pov onto the running POV program's icon in
the Dock.
This is my preferred method for openning a file in an alternate
application.

3. Choosing "Open" from the "File" menu.

I didn't even bother doing (1) because I assumed that OS X wouldn't know
which application should open the file. When I (2) dropped the mini.pov
icon on the running POV 3.5 for OS X (hold the command and option keys
while dropping) nothing happened. So, I tried (3) opening the file via
"File" "Open" and POV 3.5 for OS X crashed, which is apparently expected
behavior for this program. Not knowing that the problem was with POV-Ray
3.5 for OS X, I launched POV-Ray 3.1g.r2 for Classic and dropped the
mini.pov file on the POV-Ray Classic icon in the Dock (command and
option must be held). POV-Ray 3.1 told me that it could only process
text files.

That is when I checked the info (command I) for the file. The file was
not recognized as a text file even though all that is in the file is a
text. So, I used BBEdit to save the file as a "generic text" file. Both
POV-Ray 3.5 for OS X and POV-Ray 3.1 for Classic processed the file
without a problem. I dropped the file on the Dock icons of the running
applications (command & option while dropping).

Mac OS 9 might have the problem where it will not open the file because the
creator type is not POV3.  Write an AppleScript like this:

tell application "Finder"
  set creator code of file "Hard Disk:Users:yourname:yourfile.pov" to "POV3"
end tell

Of course change the path to the correct path (starting with the name of
your hard disk).  I briefly talk about this at
http://www.cc.utah.edu/~jer29950/qtvr

I checked the information for the file, and Mac OS X calls the file a
"document" not a "text file". I opened the file with BBEdit and saved
the file as a generic text file, and then POV-Ray had no problem with
it. Can l3p created a file that Mac OS X sees as a text file, or is this
a problem with Mac OS X?

Wait, is this the Mac OS X version of POV-Ray?  Hmm.  If you have the
developer tools installed, you can use /Developer/Tools/SetFile to set the
creator and type info.

At the command line, type:

/Developer/Tools/SetFile -c "POV3" -t "TEXT" /Users/yourname/yourfile.pov

Using the "Open" command in the "File" menu of POV-Ray 3.5 for OS X
still results in a crash. No big surprise, right? However, dropping the
file onto the Dock icon of the running POV-Ray 3.5 OS X works (hold
command and option while dropping).

Double clicking the file causes the file to be opened by POV-Ray 3.1,
and POV-Ray 3.1 processes the file just fine.

Have you noticed that POV-Ray 3.1 running in Classic is MUCH faster than
POV-Ray 3.5? You have to wonder how POV-Ray 3.5 for OS X made it out the
door. An application that crashes everytime it uses the file menu to
open a new document doesn't seem like it is ready for prime time.

Let me know if this fixes the Mac OS X POV-Ray crashes.

James

Chris



Message is in Reply To:
  Re: L3P v1.3 for Mac OSX
 
and I noticed something strange. I don't know if the problem is with (...) The problem is with POV-Ray 3.5 for Mac OS X. Check out (URL) Can you believe an app will crash every time it opens a new document? Anyway, within POV-Ray I just create a new (...) (22 years ago, 29-Nov-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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR