home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!lanai.cs.ucla.edu!jason
- From: jason@lanai.cs.ucla.edu (Jason Rosenberg)
- Subject: difficulty converting from 1.2.5 to 2.1: object names
- Message-ID: <1992Sep9.232922.15830@cs.ucla.edu>
- Originator: jason@lanai.cs.ucla.edu
- Sender: usenet@cs.ucla.edu (Mr Usenet)
- Nntp-Posting-Host: lanai.cs.ucla.edu
- Organization: UCLA Computer Science Department
- Date: Wed, 9 Sep 92 23:29:22 GMT
- Lines: 40
-
- Hello,
-
- I am in the process of converting a rather complex, existing stack from
- HC 1.2.5 to HC 2.1. One of the problems that has come up is the way
- in that objects are apparently referred to in HC 2.1. My stack has
- lots of buttons with names like "0.0","0.1", etc.... This has never
- been a problem. I have a script called hiliteBtn which takes one argument,
- the name of the button to hilite. It now complains that button number 0
- does not exist, when I pass it "0.0" as its argument. So, HC 2.1 is
- converting strings to numbers and trying that before trying the string
- as a literal.
-
- My only way around it has been to change the following line within hiliteBtn:
-
- 'set the hilite of bg btn buttonName to true'
-
- To:
-
- 'do "set the hilite of bg btn" && quote & buttonName & quote && "to true"'
-
- This seems to explicitly to treat the buttonName as a literal. Of course,
- it runs about twice as slow....
-
- I was upset to discover this anomaly. It effectively means you can no longer
- have objects with just an integer number as its name. Which is ok if you are
- building an HC stack from scratch in 2.1. But if you are converting an
- existing stack, it can be a major drag to go back and change all the object
- names.....
-
- Has anyone else encountered this? Any other work-arounds?
-
- Is there an address to contact apple (Claris, I should say) directly about
- this? It seems like it could ostensibly be a bug....
-
- Jason
-
- --
- Jason Rosenberg Computer Science Department
- jason@cs.ucla.edu University of California
- {uunet,rutgers,ucbvax}!ucla-cs!jason Los Angeles, CA 90024
-