Mac OS X Reference Library Apple Developer Connection spyglass button

PDFAnnotationLink Class Reference

Inherits from
Conforms to
Framework
Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework
Availability
Available in Mac OS X v10.4 and later.
Declared in
PDFAnnotationLink.h
Related sample code

Overview

A PDFAnnotationLink object represents either a hypertext link to another location in the document (specified as a PDFDestination object) or a URL.

Tasks

Working with Link Destinations

Highlighting the Link

Instance Methods

destination

Gets the destination for the link when the destination was specified as a PDFDestination object.

- (PDFDestination *)destination

Availability
  • Available in Mac OS X v10.4 and later.
See Also
Related Sample Code
Declared In
PDFAnnotationLink.h

setDestination:

Sets the destination for the link as a PDFDestination object.

- (void)setDestination:(PDFDestination *)destination

Availability
  • Available in Mac OS X v10.4 and later.
See Also
Related Sample Code
Declared In
PDFAnnotationLink.h

setHighlighted:

Sets the highlighting state for the link.

- (void)setHighlighted:(BOOL)flag

Discussion

For typical PDF interaction, when a user clicks (mouse-down) on a link, set highlighting to YES and redraw the link. On the subsequent mouse-up event, set highlighting to NO and redraw again.

Availability
  • Available in Mac OS X v10.4 and later.
Declared In
PDFAnnotationLink.h

setURL:

Sets the destination for the link as a URL.

- (void)setURL:(NSURL *)url

Availability
  • Available in Mac OS X v10.4 and later.
See Also
Related Sample Code
Declared In
PDFAnnotationLink.h

URL

Gets the destination for the link when the destination was specified as a URL.

- (NSURL *)URL

Availability
  • Available in Mac OS X v10.4 and later.
See Also
Related Sample Code
Declared In
PDFAnnotationLink.h


Last updated: 2006-05-23

Did this document help you? Yes It's good, but... Not helpful...