Appendix A: System Routines — Apps
309
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
OO_CondGetAttr
Declaration:
BOOL
OO_CondGetAttr
(pFrame
obj
, ULONG
selector
, void **
value
)
Category(ies):
Apps
Description:
Conditionally retrieves an attribute of an object frame.
The prototype chain of each frame in the parent hierarchy beginning with
obj
is searched until attribute
selector
is found or the top of the parent
hierarchy is reached.
Global variable
OO_SuperFrame
is updated with the parent of the frame
where the attribute was located or NULL if the attribute was not found.
Inputs:
obj
— Object frame pointer.
selector
— Attribute selector number.
value
— Address of location to return attribute value.
Outputs:
Returns TRUE if attribute was found and contents stored in *
value
.
Returns FALSE if attribute was not found and *
value
is not updated.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also: OO_GetAppAttr, OO_GetAttr, OO_HasAttr, OO_SetAppAttr,
OO_SetAttr
Example:
char *helpMsg;
.
.
.
if (OO_CondGetAttr(MyAppObj, helpMsgNum, (void *)&helpMsg))
{
/* Display help message */
.
.
.
}