Contents

FSGenericURLResource

A resource that represents an abstract URL.

Declaration

class FSGenericURLResource

Overview

An FSGenericURLResource is a completely abstract resource. The only reference to its contents is a single URL, the contents of which are arbitrary. This URL might represent a PCI locator string like /pci@f0000000/usb@5, or some sort of network address for a remote file system. FSKit leaves interpretation of the URL and its contents entirely up to your implementation.

Use the Info.plist key FSSupportedSchemes to provide an array of case-insensitive URL schemes that your implementation supports. The following example shows how a hypothetical FSGenericURLResource implementation declares support for the rsh and ssh URL schemes:

<key>FSSupportedSchemes</key>
<array>
    <string>rsh</string>
    <string>ssh</string>
</array>

Topics

Creating a generic URL resource

Accessing resource properties

Initializers

See Also

Resources