Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Next Page > Hide TOC

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

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
See Also
Declared In
PDFAnnotationLink.h

setDestination:

Sets the destination for the link as a PDFDestination object.

- (void)setDestination:(PDFDestination *)destination

Availability
See Also
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
Declared In
PDFAnnotationLink.h

setURL:

Sets the destination for the link as a URL.

- (void)setURL:(NSURL *)url

Availability
See Also
Declared In
PDFAnnotationLink.h

URL

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

- (NSURL *)URL

Availability
See Also
Declared In
PDFAnnotationLink.h

Next Page > Hide TOC


Last updated: 2006-05-23




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice