Instance Method

load(from:)

Loads the contents of the specified web history file.

Declaration

func load(from URL: URL!) throws

Parameters

URL

The URL of the file to load. The file should have been created previously by a web history object. Note that the file’s format is private and should not be edited directly.

error

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

Return Value

true if successful; otherwise, false.

Discussion

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

See Also

Loading and Saving History Information

func save(to: URL!)

Saves the web history to the specified file.

Deprecated