Instance Method

displayLinkWithTarget:selector:

Returns a display link object for the current screen.

Declaration

- (CADisplayLink *)displayLinkWithTarget:(id)target selector:(SEL)sel;

Parameters

target

An object to be notified when the screen should be updated.

sel

The method of target to call. This selector must have the following signature:

- (void)selector:(CADisplayLink *)sender;

Return Value

A newly constructed display link object.

Discussion

You use display link objects to synchronize your drawing code to the screen’s refresh rate. The newly constructed display link retains the target.

See Also

Getting a Display Link

maximumFramesPerSecond

The maximum number of frames per second of which the screen is capable.