Type Method

registerURLScheme(asLocal:)

Adds the specified URL scheme to the list of local schemes.

Declaration

class func registerURLScheme(asLocal scheme: String!)

Parameters

scheme

The scheme to add to the list.

Discussion

You need to register a scheme as local to access resources with file URLs and to have the same security checks as a local file.

See Also

Registering Document Views and Representations

class func registerClass(AnyClass!, representationClass: AnyClass!, forMIMEType: String!)

Specifies the view and representation objects to be used for specific MIME types.

Deprecated