Up

Functions

Authors

Generated by fedor

Contents -

  1. NSCell functions
  2. NSGraphicsContext functions
  3. NSInterfaceStyle functions

NSCell functions

_sizeForBorderType

NSSize _sizeForBorderType(NSBorderType aType);

Description forthcoming.


NSGraphicsContext functions

GSCurrentContext

NSGraphicsContext* GSCurrentContext();

Description forthcoming.


NSInterfaceStyle functions

NSInterfaceStyleForKey

NSInterfaceStyle NSInterfaceStyleForKey(NSString* key, NSResponder* responder);

Returns the interface style the responder should use, which affects how a UI element (such as a button or menu) is displayed. If the responder has an interface style set, the key is ignored and the responder's interface style is returned. Otherwise the style associated with the key is returned (if set), otherwise the default style is returned. In no case will the style NSNoInterfaceStyle be returned.

Styles can be set using the user defaults system. Currently available styles are

You can set a default style for all UI elements using the NSInterfaceStyleDefault key:

   defaults write NSGlobalDomain NSInterfaceStyleDefault GSWindowMakerInterfaceStyle 
   



Up