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

  1. /*
  2.         NSMenuItem.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.  
  11. @protocol NSMenuItem <NSCopying, NSCoding>
  12.  
  13. - (NSString *)title;
  14. - (void)setTitle:(NSString *)aString;
  15. - (BOOL)isEnabled;
  16. - (void)setEnabled:(BOOL)flag;
  17.  
  18. - (id)target;
  19. - (void)setTarget:(id)anObject;
  20. - (SEL)action;
  21. - (void)setAction:(SEL)aSelector;
  22. - (int)tag;
  23. - (void)setTag:(int)anInt;
  24.  
  25. - (NSString *)keyEquivalent;
  26. - (void)setKeyEquivalent:(NSString *)aKeyEquivalent;
  27. - (unsigned int)keyEquivalentModifierMask;
  28. - (void)setKeyEquivalentModifierMask:(unsigned int)mask;
  29.  
  30. + (void)setUsesUserKeyEquivalents:(BOOL)flag;
  31. + (BOOL)usesUserKeyEquivalents;
  32.  
  33. - (NSString *)userKeyEquivalent;
  34.  
  35. - (BOOL)hasSubmenu;
  36.  
  37. #ifndef STRICT_OPENSTEP
  38. - (void)setMnemonicLocation:(unsigned)location;
  39. - (unsigned)mnemonicLocation;
  40. - (NSString *)mnemonic;
  41. - (void)setTitleWithMnemonic:(NSString *)stringWithAmpersand;
  42.  
  43. - (id)representedObject;
  44. - (void)setRepresentedObject:(id)anObject;
  45. #endif STRICT_OPENSTEP
  46.  
  47. @end
  48.  
  49. #ifndef STRICT_OPENSTEP
  50. @interface NSMenuItem : NSObject <NSMenuItem> {
  51.     @private
  52.     unsigned char _pad[64];
  53. }
  54. @end
  55. #endif
  56.