Deprecated NSTextView Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Available in OS X v10.0 through OS X v10.4

becomeFirstResponder

Informs the receiver that it’s becoming the first responder. (Available in OS X v10.0 through OS X v10.4. Use the NSWindow method makeFirstResponder: to make a text view the first responder.)

- (BOOL)becomeFirstResponder
Return Value

Returns YES.

Discussion

If the previous first responder was not an NSTextView on the same NSLayoutManager as the receiving NSTextView, this method draws the selection and updates the insertion point if necessary.

Use the NSWindow method makeFirstResponder:, not this method, to make a text view the first responder. Never invoke this method directly.

Availability
  • Available in OS X v10.0 through OS X v10.4.
Declared In
NSTextView.h

resignFirstResponder

Notifies the receiver that it’s been asked to relinquish its status as first responder. (Available in OS X v10.0 through OS X v10.4. Use the NSWindow method makeFirstResponder: to make a text view the first responder.)

- (BOOL)resignFirstResponder
Return Value

YES if the text view will resign first responder, NO otherwise.

Discussion

If the object that will become the new first responder is a text view attached to the same layout manager as the receiver, this method returns YES with no further action. Otherwise, this method sends a textShouldEndEditing: message to its delegate (if any). If the delegate returns NO, this method returns NO. If the delegate returns YES, this method hides the selection highlighting and posts an NSTextDidEndEditingNotification to the default notification center and then returns YES.

Use the NSWindow method makeFirstResponder:, not this method, to make a text view the first responder. Never invoke this method directly.

Availability
  • Available in OS X v10.0 through OS X v10.4.
Declared In
NSTextView.h

Deprecated in OS X v10.6

toggleBaseWritingDirection:

Changes the base writing direction of a paragraph between left-to-right and right-to-left. (Deprecated in OS X v10.6. This method is deprecated in favor of the NSResponder class’s methods makeBaseWritingDirectionNatural:, makeBaseWritingDirectionLeftToRight:, and makeBaseWritingDirectionRightToLeft:.)

- (void)toggleBaseWritingDirection:(id)sender
Availability
  • Available in OS X v10.3 and later.
  • Deprecated in OS X v10.6.
Declared In
NSTextView.h