Texas Instruments TI89 Developer Guide - Page 355
OO_CondGetAttr, OO_SetAppAttr, Throws ER_ATTRIBUTE_NOT_FOUND error if attribute
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 355 highlights
Appendix A: System Routines - Apps 313 OO_GetAppAttr Declaration: void * OO_GetAppAttr (AppID app, ULONG selector) Category(ies): Apps Description: Retrieves an attribute of an app's object frame. The prototype chain of each frame in the parent hierarchy beginning with the object frame of application app is searched until attribute selector is found. Throws ER_ATTRIBUTE_NOT_FOUND error if attribute selector cannot be found. 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: app - ID of application containing object frame where attribute search should begin. selector - Attribute selector number. Outputs: See description. Assumptions: Rarely would you call OO_GetAppAttr directly. The FDL compiler (see section 7.3.3.3. Frame Description Language) compiles attribute declarations into access macros with the call to OO_GetAppAttr containing the proper selector number and return type cast. You would call the macro instead of OO_GetAppAttr. Side Effects: None Availability: On AMS 2.00 and higher. TI-89 / TI-92 Plus Differences: None See Also: OO_CondGetAttr, OO_GetAttr, OO_HasAttr, OO_SetAppAttr, OO_SetAttr Example: int version; version = (int const)OO_GetAppAttr(theApp, OO_APP_VERSION); /* Better yet, call the macro generated by FDL: */ version = GetAppVersion(theApp); TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/355.png)