Instance Method

save(to:)

Saves the web history to the specified file.

Declaration

func save(to URL: URL!) throws

Parameters

URL

The URL of the file to contain the web history information. The file must be user-writable, but its format is private and should not be edited directly.

error

On output, nil if the load was successful; otherwise, error, which contains details of the failure.

Return Value

true if successful; otherwise, false

Discussion

When successful, this method posts a notification (WebHistorySaved).

See Also

Loading and Saving History Information

func load(from: URL!)

Loads the contents of the specified web history file.

Deprecated