Deprecated NSTextField 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.1

nextText

Returns the object selected when the user presses Tab. (Available in OS X v10.0 through OS X v10.1. Use the NSView method nextKeyView instead.)

- (id)nextText
Return Value

The object to be selected.

Availability
  • Available in OS X v10.0 through OS X v10.1.
Declared In
NSTextField.h

previousText

Returns the object selected when the user presses Shift-Tab. (Available in OS X v10.0 through OS X v10.1. Use the NSView method previousKeyView instead.)

- (id)previousText
Return Value

The object to be selected.

Availability
  • Available in OS X v10.0 through OS X v10.1.
Declared In
NSTextField.h

setNextText:

Sets the object selected when the user presses Tab. (Available in OS X v10.0 through OS X v10.1. Use the NSView method setNextKeyView: instead.)

- (void)setNextText:(id)anObject
Parameters
anObject

The object to be selected.

Availability
  • Available in OS X v10.0 through OS X v10.1.
Declared In
NSTextField.h

setPreviousText:

Sets the object selected when the user presses Shift-Tab. (Available in OS X v10.0 through OS X v10.1. Use the NSView method setNextKeyView: instead.)

- (void)setPreviousText:(id)anObject
Parameters
anObject

The object to be selected.

Availability
  • Available in OS X v10.0 through OS X v10.1.
Declared In
NSTextField.h

Deprecated in OS X v10.8

setTitleWithMnemonic:

Sets the receiver’s string value, using the embedded character as the keyboard mnemonic. (Deprecated in OS X v10.8.)

- (void)setTitleWithMnemonic:(NSString *)aString
Parameters
aString

The string to set as the title. The first character preceded by an ampersand (‘&’) is used as the mnemonic (the first ampersand character is stripped out).

Discussion

Mnemonics are not supported in OS X.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.8.
Declared In
NSTextField.h