Instance Method

initWithFrame:

Initializes a text view.

Declaration

- (instancetype)initWithFrame:(NSRect)frameRect;

Parameters

frameRect

The frame rectangle of the text view.

Return Value

An initialized text view.

Discussion

This method creates the entire collection of objects associated with a text view—its text container, layout manager, and text storage—and invokes initWithFrame:textContainer:.

This method creates the text web in such a manner that the text view is the principal owner of the objects in the web.

See Also

Initializing

- initWithFrame:textContainer:

Initializes a text view.