home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / NSInterfaceStyle.h < prev    next >
Text File  |  1996-10-17  |  1KB  |  31 lines

  1. /*
  2.         NSInterfaceStyle.h
  3.         Application Kit
  4.         Copyright (c) 1995-1996, NeXT Software, Inc.
  5.         All rights reserved.
  6. */
  7.  
  8. #import <Foundation/Foundation.h>
  9. #import <AppKit/AppKitDefines.h>
  10. #import <AppKit/NSWindow.h>
  11. #import <AppKit/NSView.h>
  12.  
  13. typedef enum {
  14.     NSNoInterfaceStyle = 0,    // Default value for a window's interfaceStyle
  15.     NSNextStepInterfaceStyle = 1, 
  16.     NSWindows95InterfaceStyle = 2, 
  17. } NSInterfaceStyle;
  18.  
  19. APPKIT_EXTERN NSInterfaceStyle NSInterfaceStyleForKey(NSString *key, NSResponder *responder);
  20.     // Responders can use this function to parameterize their drawing and behavior.  If the responder has specific defaults to control various aspects of its interface individually, the keys for those special settings can be passed in, otherwise pass nil to get the global setting.  The responder should always be passed, but in situations where a responder is not available, pass nil.
  21.  
  22. @interface NSResponder (NSInterfaceStyle)
  23. - (NSInterfaceStyle)interfaceStyle;
  24. - (void)setInterfaceStyle:(NSInterfaceStyle)interfaceStyle;
  25. // A responder's style (if set) overrides all other settings.  Responders which need to redraw or do any other work when the interface style changes should override this to do it.  Always call super.
  26. @end
  27.  
  28. // Default strings
  29.  
  30. APPKIT_EXTERN NSString *NSInterfaceStyleDefault;
  31.