Error messages
John.Maloney at Eng.Sun.COM
John.Maloney at Eng.Sun.COM
Mon Feb 15 17:09:21 UTC 1993
Frank,
Try doing "pathCache refill" after you have added your own objects
to the system. The path cache is a dictionary of names for well-known
objects. This will help if the object you are printing is a prototype,
traits, or oddball object (i.e., if it can be found in the global
namespace).
For other objects, you have to do two things:
a. implement the method "printString" returning the desired string
b. add a constant slot with the name "thisObjectPrints" to the
object's prototype. This tells the object printing code that it
is safe to send printString to the object (this trick is needed
because not every object understands printString).
Let me know if this solves the problem.
-- John
More information about the Self-interest
mailing list