Difference between revisions of "SCI Kernel Documentation/Object Functions"
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
[[SCI Kernel Documentation/String Functions|6]] | | [[SCI Kernel Documentation/String Functions|6]] | | ||
[[SCI Kernel Documentation/Picture Functions|7]] | | [[SCI Kernel Documentation/Picture Functions|7]] | | ||
− | [[SCI Kernel Documentation/Save | + | [[SCI Kernel Documentation/Save-Restore Game Functions|8]] | |
[[SCI Kernel Documentation/Animation Functions|9]] | | [[SCI Kernel Documentation/Animation Functions|9]] | | ||
[[SCI Kernel Documentation/Graphic Screen Functions|10]] | | [[SCI Kernel Documentation/Graphic Screen Functions|10]] | | ||
Line 29: | Line 29: | ||
| | ||
− | + | ==<br /> Object Functions == | |
+ | |||
+ | These functions are low-level functions for manipulating and getting information about objects. | ||
+ | |||
+ | ===<br /> (Clone instance/class) === | ||
+ | |||
+ | <blockquote> | ||
+ | Return the object ID of a copy of instance/class. This copy has the same property values and the same methods as instance/class. The properties can be changed, the methods cannot. | ||
+ | </blockquote> | ||
+ | |||
+ | ===<br /> (DisposeClone object) === | ||
+ | |||
+ | <blockquote> | ||
+ | Dispose of object if it was created with the Clone function, leave it alone otherwise. This does not dispose of any objects which may have their IDs in a property of object -- you must do that before calling DisposeClone. | ||
+ | </blockquote> | ||
+ | |||
+ | ===<br /> (IsObject object) === | ||
+ | |||
+ | <blockquote> | ||
+ | Returns TRUE if object is an object or class, FALSE otherwise. Useful for testing to see that something is an object before sending a message to it in a situation in which you can't be guaranteed that a value is an object ID. | ||
+ | </blockquote> | ||
+ | |||
+ | ===<br /> (RespondsTo object selector) === | ||
+ | |||
+ | <blockquote> | ||
+ | Returns TRUE if selector is a valid selector for object, i.e. if selector is the name of a property or method of object. | ||
+ | </blockquote> | ||
| | ||
Line 49: | Line 75: | ||
[[Category:Kernel Functions]] | [[Category:Kernel Functions]] | ||
[[Category:Objects]] | [[Category:Objects]] | ||
+ | [[Category:Object Functions]] |
Latest revision as of 00:37, 3 December 2015
Object Functions
These functions are low-level functions for manipulating and getting information about objects.
(Clone instance/class)
Return the object ID of a copy of instance/class. This copy has the same property values and the same methods as instance/class. The properties can be changed, the methods cannot.
(DisposeClone object)
Dispose of object if it was created with the Clone function, leave it alone otherwise. This does not dispose of any objects which may have their IDs in a property of object -- you must do that before calling DisposeClone.
(IsObject object)
Returns TRUE if object is an object or class, FALSE otherwise. Useful for testing to see that something is an object before sending a message to it in a situation in which you can't be guaranteed that a value is an object ID.
(RespondsTo object selector)
Returns TRUE if selector is a valid selector for object, i.e. if selector is the name of a property or method of object.
- Notes
< Previous: List FunctionsNext: System Functions >