IsODToken
TheIsODTokenmethod returns a Boolean value that indicates whether the specified token object has been initialized to the proper format for an OpenDoc token.
ODBoolean IsODToken(in ODOSLToken token);
- token
- A reference to the token to check.
- return value
kODTrueif the token is a token object created by one of your object accessors, otherwisekODFalse.DISCUSSION
You can call this method from theCallCompareProcmethod of your part's semantic interface. Either of theobj1andobj2parameters to that method may be either anODDescobject that describes data or anODOSLTokenobject created by one of your object accessors. To distinguish these two possibilities, you can pass each input parameter, in turn, to theIsODTokenmethod. If this method returns true, the input parameter is a token object; if it returns false, the input parameter is a descriptor object.SEE ALSO
TheODSemanticInterface::CallCompareProcmethod (page 587).
"Returning Tokens" on page 428 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help