Article # 646, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
How to access instance data for other master levels.
Q. I want to access the Vis instance data of my GenClass object. How would I go about getting a pointer to the Vis master level data? A. You would basically have to define a pointer variable of the correct type and then use one of the ObjDeref..() functions. Here is an example: VisInstance * visPtr; visPtr = ObjDerefVis( oself ); This example turns oself into a pointer to the Vis instance of the object. You could access other classes' instance data by using a different data type in the place of "VisInstance". For example, if you had a class called MySpecialClass you would define the variable type to be "MySpecialInstance". As you can see the data type is simply the class name, minus the "Class" suffix, with an "Instance" suffix added onto it.