Instance Method

setCurrentSelection:animate:

Sets the current selection, in an animated way, if desired.

Declaration

- (void)setCurrentSelection:(PDFSelection *)selection animate:(BOOL)animate;

Discussion

This method behaves as setCurrentSelection:, but with the addition of animation, if animate is YES. The animation serves to draw the user’s attention to the new selection, which can be useful when implementing search.

See Also

Handling Selections

currentSelection

The current selection.

- selectAll:

Selects all text in the document.

- clearSelection

Clears the selection.

- copy:

Copies the text in the selection, if any, to the Pasteboard.

- scrollSelectionToVisible:

Scrolls the view until the selection is visible.

highlightedSelections

Returns the array of selections that are highlighted using setHighlightedSelections.