Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

UTTypeMBS.ConformsTo(UTI as string, ConformsToUTI as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: Checks whether a type is a subtype of the second type.
Example:
if UTTypeMBS.ConformsTo("public.jpeg","public.image") then
MsgBox "ConformsTo"
else
MsgBox "not ConformsTo"
end if

Feedback, Comments & Corrections

UTTypeMBS.CreateAllIdentifiersForTag(inTagClass as string, inTag as string, inConformingToUTI as string) as string()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: Creates an array of all uniform type identifiers indicated by the specified tag.
Example:
MsgBox join(UTTypeMBS.CreateAllIdentifiersForTag(UTTypeMBS.kUTTagClassFilenameExtension, "txt", ""))
// shows "public.plain-text"

MsgBox join(UTTypeMBS.CreateAllIdentifiersForTag(UTTypeMBS.kUTTagClassFilenameExtension, "xml", ""))
// shows "public.xml com.apple.dashcode.xml"
Notes: An overloaded tag (e.g., an extension used by several applications for different file formats) may indicate multiple types. If no declared type identifiers have the specified tag, then a single dynamic type identifier will be created for the tag. Optionally, the returned type identifiers must conform to the identified "conforming-to" type argument. This is a hint to the implementation to constrain the search to a particular tree of types. For example, the client may want to know the type indicated by a particular extension tag. If the client knows that the extension is associated with a directory (rather than a file), the client may specify "public.directory" for the conforming-to argument. This will allow the implementation to ignore all types associated with byte data formats (public.data base type).

Feedback, Comments & Corrections

UTTypeMBS.CreatePreferredIdentifierForTag(inTagClass as string, inTag as string, inConformingToUTI as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: Creates a uniform type identifier for the type indicated by the specified tag.
Example:
MsgBox UTTypeMBS.CreatePreferredIdentifierForTag(UTTypeMBS.kUTTagClassFilenameExtension, "jpg", "")
// shows "public.jpeg"
MsgBox UTTypeMBS.CreatePreferredIdentifierForTag(UTTypeMBS.kUTTagClassOSType, "TIFF", "public.image")
// shows "public.tiff"
Notes: This is the primary function to use for going from tag (extension/MIMEType/OSType) to uniform type identifier. Optionally, the returned type identifiers must conform to the identified "conforming-to" type argument. This is a hint to the implementation to constrain the search to a particular tree of types. For example, the client may want to know the type indicated by a particular extension tag. If the client knows that the extension is associated with a directory (rather than a file), the client may specify "public.directory" for the conforming-to argument. This will allow the implementation to ignore all types associated with byte data formats (public.data base type). If more than one type is indicated, preference is given to a public type over a non-public type on the theory that instances of public types are more common, and therefore more likely to be correct. When there a choice must be made between multiple public types or multiple non-public types, the selection rules are undefined. Clients needing finer control should use CreateAllIdentifiersWithTag. If no declared type is indicated, a dynamic type identifier is generated which satisfies the parameters.

Feedback, Comments & Corrections

UTTypeMBS.DeclaringBundleURL(UTI as string) as folderitem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: Returns the folderitem of the bundle containing the type declaration of the identified type.
Example:
MsgBox UTTypeMBS.DeclaringBundleURL("public.jpeg").NativePath

Feedback, Comments & Corrections

UTTypeMBS.Description(UTI as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: Returns the localized, user-readable type description string.
Example:
MsgBox UTTypeMBS.Description("public.jpeg") // "JPEG-Bild" in German

Feedback, Comments & Corrections

UTTypeMBS.Equal(UTI as string, SecondUTI as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: Checks whether two types are equal.
Example:
if UTTypeMBS.Equal("public.jpeg","public.jpeg") then
MsgBox "equal"
else
MsgBox "not equal"
end if
Notes: Returns true if both UTIs are equal.

Feedback, Comments & Corrections

UTTypeMBS.kUTExportedTypeDeclarationsKey as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the constants for the keys used in type declarations.
Example:
MsgBox UTTypeMBS.kUTExportedTypeDeclarationsKey // "UTExportedTypeDeclarations"

Feedback, Comments & Corrections

UTTypeMBS.kUTImportedTypeDeclarationsKey as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the constants for the keys used in type declarations.
Example:
MsgBox UTTypeMBS.kUTImportedTypeDeclarationsKey // "UTImportedTypeDeclarations"

Feedback, Comments & Corrections

UTTypeMBS.kUTTagClassFilenameExtension as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the constant strings identify tag classes for use when converting uniform type identifiers to and from equivalent tags.
Example:
MsgBox UTTypeMBS.kUTTagClassFilenameExtension // "public.filename-extension"

Feedback, Comments & Corrections

UTTypeMBS.kUTTagClassMIMEType as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the constant strings identify tag classes for use when converting uniform type identifiers to and from equivalent tags.
Example:
MsgBox UTTypeMBS.kUTTagClassMIMEType // "public.mime-type"

Feedback, Comments & Corrections

UTTypeMBS.kUTTagClassNSPboardType as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the constant strings identify tag classes for use when converting uniform type identifiers to and from equivalent tags.
Example:
MsgBox UTTypeMBS.kUTTagClassNSPboardType // "com.apple.nspboard-type"

Feedback, Comments & Corrections

UTTypeMBS.kUTTagClassOSType as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the constant strings identify tag classes for use when converting uniform type identifiers to and from equivalent tags.
Example:
MsgBox UTTypeMBS.kUTTagClassOSType // "com.apple.ostype"

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeAliasFile as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeAliasRecord as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeAppleICNS as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeAppleProtectedMPEG4Audio as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeApplication as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeApplicationBundle as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeApplicationFile as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeArchive as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeAudio as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeAudiovisualContent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeBMP as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeBundle as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeCHeader as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeCompositeContent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeConformsToKey as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the constants for the keys used in type declarations.
Example:
MsgBox UTTypeMBS.kUTTypeConformsToKey // "UTTypeConformsTo"

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeContact as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

UTTypeMBS.kUTTypeContent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Launch Services MBS MacOSX Plugin 8.5 Yes No No Yes, macOS only No
Function: One of the predefined type constants.

Feedback, Comments & Corrections

Next items

The items on this page are in the following plugins: MBS MacOSX Plugin.

The biggest plugin in space...




Links
MBS Xojo Plugins