Deprecated NSResponder Methods

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

Deprecated in OS X v10.8

interfaceStyle

Returns the receiver’s interface style. (Deprecated in OS X v10.8.)

- (NSInterfaceStyle)interfaceStyle
Discussion

interfaceStyle is an abstract method in NSResponder and just returns NSNoInterfaceStyle. It is overridden in classes such as NSWindow and NSView to return the interface style, such as NSMacintoshInterfaceStyle. A responder’s style (if other than NSNoInterfaceStyle) overrides all other settings, such as those established by the defaults system.

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

performMnemonic:

Overridden by subclasses to handle a mnemonic. (Deprecated in OS X v10.8.)

- (BOOL)performMnemonic:(NSString *)aString
Parameters
aString

A string containing mnemonic character code or codes.

Discussion

If the character code or codes in aString match the receiver’s mnemonic, the receiver should perform the mnemonic and return YES. The default implementation does nothing and returns NO. Mnemonics are not supported in OS X.

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

setInterfaceStyle:

Sets the receiver’s style to the style specified by interfaceStyle, such as NSMacintoshInterfaceStyle or NSWindows95InterfaceStyle. (Deprecated in OS X v10.8.)

- (void)setInterfaceStyle:(NSInterfaceStyle)interfaceStyle
Parameters
interfaceStyle

An enum constant identifying an interface style.

Discussion

setInterfaceStyle: is an abstract method in NSResponder, but is overridden in classes such as NSWindow and NSView to actually set the interface style. You should almost never need to invoke or override this method, but if you do override it, your version should always invoke the implementation in super.

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