Class

WebHistoryItem

WebHistoryItem objects encapsulate information about visiting a page so that users can return to that page. WebHistory and WebBackForwardList objects manage lists of WebHistoryItem objects. WebHistoryItem objects are created and added to these lists automatically when loading pages, so you do not need to create WebHistoryItem objects directly.

Symbols

Initializing WebHistoryItem objects

init!(urlString: String!, title: String!, lastVisitedTimeInterval: TimeInterval)

Initializes the receiver with a URL,URLString, a title specified by title and the last time this item was visited specified by time title, and time last visited.

Getting URL information

var urlString: String!

The string representation of the URL for the receiver’s page.

var originalURLString: String!

The string representation of the original URL for the receiver’s page.

Getting and setting page titles

var title: String!

The receiver’s original page title.

var alternateTitle: String!

An alternate title that may be used in place of the receiver’s page title.

Getting other attributes

var icon: NSImage!

The icon for the receiver’s page, or nil if none exists.

var lastVisitedTimeInterval: TimeInterval

The last time and date the receiver’s page was visited.

Notifications

static let WebHistoryItemChanged: NSNotification.Name

Posted by a WebHistoryItem object when the value of the history item’s title, alternate title, URL strings, or last visited interval changes.

Relationships

Inherits From