Contents
Navigation
Home User Reference Other Resources


OSType values are 32–bit integer values widely used in QuickTime APIs. These can often be usefully treated as a four–character string with a mnemonic value, such as cvid or rpza, but non–ASCII values (such as &h00000001) are also used.

The QTPlgOSType is an utility class that makes easier to deal with such a values.

Since version 6.7 of the plugin this class can be used in Console Applications






The QTPlgOSType class constructors are called when you create a new instance of the class, while the ˜QTPlgOSType class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. A QTPlgOSType object is always valid.

The class implements the following initializer methods:
()
This is the default constructor. The class property is set to 0 and the class property to an empty string
(other as QTPlgOSType)
This is the copy constructor. The properties of the object to be copied will be used to initialize the new class instance properties
(ostype as integer)
The class property is set to the integer value specified by the ostype parameter and the class property to the equivalent four char code string representation of it (if it is possible)
(ostype as string)
The class property is set to the integer value equivalent to the string passed by the ostype parameter that will be used to initialize the class property. shows how to create an instance of this class by using this constructor version

specifies the OSType integer value
specifies the OSType value as a four char code string. If you try to set this property with a string longer than four chracters, any character exceding the fourth will be ignored

() as integer
this operator allows to implicitly convert a QTPlgOSType object to an integer
returns the integer value of the OSType in use
() as string
this operator allows to implicitly convert a QTPlgOSType object to a string
returns the string representation of the OSType in use


dim ot as new QTPlgOSType("cvid")
if ot<>nil then
msgbox str(ot.osType)
end if