Instance Method

initSymbolicLinkWithDestinationURL:

Initializes the receiver as a symbolic-link file wrapper that links to a specified file.

Declaration

- (instancetype)initSymbolicLinkWithDestinationURL:(NSURL *)url;

Parameters

url

URL of the file the file wrapper is to reference.

Return Value

Initialized symbolic-link file wrapper referencing url.

Discussion

The file wrapper is not associated with a file-system node until you save it using writeToURL:options:originalContentsURL:error:.

The file wrapper is initialized with open permissions: anyone can modify or read the file reference. .

See Also

Creating File Wrappers

- initWithURL:options:error:

Initializes a file wrapper instance whose kind is determined by the type of file-system node located by the URL.

- initWithPath:

Initializes a file wrapper instance whose kind is determined by the type of file-system node located by the path.

Deprecated
- initDirectoryWithFileWrappers:

Initializes the receiver as a directory file wrapper, with a given file-wrapper list.

- initRegularFileWithContents:

Initializes the receiver as a regular-file file wrapper.

- initSymbolicLinkWithDestination:

Initializes the receiver as a symbolic-link file wrapper.

Deprecated
- initWithSerializedRepresentation:

Initializes the receiver as a regular-file file wrapper from given serialized data.