COBookmark class documentation
COBookmark : COObjectOverview
COObject API includes the bookmark name, creation date and modification date. For example, see -[COObject name] .
Initialization
- - (id) initWithURL: (NSURL *)aURL
Intializes and returns a bookmark representing the URL.
For a nil URL, raises an NSInvalidArgumentException.
- - (id) initWithURLFile: (NSString *)aFilePath
Intializes and returns a bookmark from the URL location file at the given path.
Files using extensions such as.webloc or.url are URL location files.
When no URL can be extracted from the URL location file, returns nil.
For a nil URL, raises an NSInvalidArgumentException.
Bookmark Properties
- - (NSDate *) lastVisitedDate
The last time the URL was visited.
For example, each time a web page is loaded, a browser can udpate this property.
This property is persistent.
- - (void) setLastVisitedDate: (NSDate *)lastVisitedDate
The last time the URL was visited.
For example, each time a web page is loaded, a browser can udpate this property.
This property is persistent.