uti

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Provide uniform type identifiers that describe file types for storage or transfer.

Apple Documentation

Index

Constants

This section is empty.

Variables

View Source
var TypeClass = _TypeClass{objc.GetClass("UTType")}

The class instance for the Type class.

Functions

This section is empty.

Types

type IType

type IType interface {
	objc.IObject
	ConformsToType(type_ IType) bool
	IsSubtypeOfType(type_ IType) bool
	IsSupertypeOfType(type_ IType) bool
	Identifier() string
	IsPublicType() bool
	Supertypes() foundation.Set
	Version() foundation.Number
	ReferenceURL() foundation.URL
	Tags() map[string][]string
	PreferredFilenameExtension() string
	PreferredMIMEType() string
	IsDynamic() bool
	LocalizedDescription() string
	IsDeclared() bool
}

An interface definition for the Type class.

type Type

type Type struct {
	objc.Object
}

An object that represents a type of data to load, send, or receive. Full Topic

func NewType

func NewType() Type

func TypeFrom

func TypeFrom(ptr unsafe.Pointer) Type

func Type_ExportedTypeWithIdentifier

func Type_ExportedTypeWithIdentifier(identifier string) Type

Creates a type your app owns based on an identifier. Full Topic

func Type_ExportedTypeWithIdentifierConformingToType

func Type_ExportedTypeWithIdentifierConformingToType(identifier string, parentType IType) Type

Creates a type your app owns based on an identifier and a supertype that it conforms to. Full Topic

func Type_ImportedTypeWithIdentifier

func Type_ImportedTypeWithIdentifier(identifier string) Type

Creates a type your app uses, but doesn’t own, based on an identifier. Full Topic

func Type_ImportedTypeWithIdentifierConformingToType

func Type_ImportedTypeWithIdentifierConformingToType(identifier string, parentType IType) Type

Creates a type your app uses, but doesn’t own, based on an identifier and a supertype that it conforms to. Full Topic

func Type_TypeWithFilenameExtension

func Type_TypeWithFilenameExtension(filenameExtension string) Type

Creates a type that represents the specified filename extension. Full Topic

func Type_TypeWithFilenameExtensionConformingToType

func Type_TypeWithFilenameExtensionConformingToType(filenameExtension string, supertype IType) Type

Creates a type that represents the specified filename extension and conforms to an existing type. Full Topic

func Type_TypeWithIdentifier

func Type_TypeWithIdentifier(identifier string) Type

Creates a type based on an identifier. Full Topic

func Type_TypeWithMIMEType

func Type_TypeWithMIMEType(mimeType string) Type

Creates a type based on a MIME type. Full Topic

func Type_TypeWithMIMETypeConformingToType

func Type_TypeWithMIMETypeConformingToType(mimeType string, supertype IType) Type

Creates a type based on a MIME type and a supertype that it conforms to. Full Topic

func Type_TypeWithTagTagClassConformingToType

func Type_TypeWithTagTagClassConformingToType(tag string, tagClass string, supertype IType) Type

Creates a type that represents the specified tag and tag class and which conforms to an existing type. Full Topic

func Type_TypesWithTagTagClassConformingToType

func Type_TypesWithTagTagClassConformingToType(tag string, tagClass string, supertype IType) []Type

Returns an array of types from the provided tag and tag class. Full Topic

func (Type) ConformsToType

func (t_ Type) ConformsToType(type_ IType) bool

Returns a Boolean value that indicates whether a type conforms to the type. Full Topic

func (Type) Identifier

func (t_ Type) Identifier() string

The string that represents the type. Full Topic

func (Type) Init

func (t_ Type) Init() Type

func (Type) IsDeclared

func (t_ Type) IsDeclared() bool

A Boolean value that indicates whether the system declares the type. Full Topic

func (Type) IsDynamic

func (t_ Type) IsDynamic() bool

A Boolean value that indicates whether the system generates the type. Full Topic

func (Type) IsPublicType

func (t_ Type) IsPublicType() bool

A Boolean value that indicates whether the type is in the public domain. Full Topic

func (Type) IsSubtypeOfType

func (t_ Type) IsSubtypeOfType(type_ IType) bool

Returns a Boolean value that indicates whether a type is higher in a hierarchy than the type. Full Topic

func (Type) IsSupertypeOfType

func (t_ Type) IsSupertypeOfType(type_ IType) bool

Returns a Boolean value that indicates whether a type is lower in a hierarchy than the type. Full Topic

func (Type) LocalizedDescription

func (t_ Type) LocalizedDescription() string

A localized description of the type. Full Topic

func (Type) PreferredFilenameExtension

func (t_ Type) PreferredFilenameExtension() string

The preferred filename extension for the type. Full Topic

func (Type) PreferredMIMEType

func (t_ Type) PreferredMIMEType() string

The preferred MIME type for the type. Full Topic

func (Type) ReferenceURL

func (t_ Type) ReferenceURL() foundation.URL

The reference URL for the type. Full Topic

func (Type) Supertypes

func (t_ Type) Supertypes() foundation.Set

The set of types the type directly or indirectly conforms to. Full Topic

func (Type) Tags

func (t_ Type) Tags() map[string][]string

The tag specification dictionary of the type. Full Topic

func (Type) Version

func (t_ Type) Version() foundation.Number

The type’s version, if available. Full Topic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL