home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / NSTextField.h < prev    next >
Text File  |  1996-09-09  |  2KB  |  64 lines

  1. /*
  2.     NSTextField.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <AppKit/NSControl.h>
  9.  
  10. @interface NSTextField : NSControl
  11. {
  12.     id    _delegate;
  13.     SEL    _errorAction;
  14. }
  15.  
  16. - (void)setBackgroundColor:(NSColor *)color;
  17. - (NSColor *)backgroundColor;
  18. - (void)setDrawsBackground:(BOOL)flag;
  19. - (BOOL)drawsBackground;
  20. - (void)setTextColor:(NSColor *)color;
  21. - (NSColor *)textColor;
  22. - (BOOL)isBordered;
  23. - (void)setBordered:(BOOL)flag;
  24. - (BOOL)isBezeled;
  25. - (void)setBezeled:(BOOL)flag;
  26. - (BOOL)isEditable;
  27. - (void)setEditable:(BOOL)flag;
  28. - (BOOL)isSelectable;
  29. - (void)setSelectable:(BOOL)flag;
  30. - (void)setPreviousText:(id)anObject;
  31. - (id)previousText;
  32. - (void)setNextText:(id)anObject;
  33. - (id)nextText;
  34. - (SEL)errorAction;
  35. - (void)setErrorAction:(SEL)aSelector;
  36. - (void)selectText:(id)sender;
  37. - (id)delegate;
  38. - (void)setDelegate:(id)anObject;
  39. - (BOOL)textShouldBeginEditing:(NSText *)textObject;
  40. - (BOOL)textShouldEndEditing:(NSText *)textObject;
  41. - (void)textDidBeginEditing:(NSNotification *)notification;
  42. - (void)textDidEndEditing:(NSNotification *)notification;
  43. - (void)textDidChange:(NSNotification *)notification;
  44. - (BOOL)acceptsFirstResponder;
  45. @end
  46.  
  47. #ifndef STRICT_OPENSTEP
  48. @interface NSTextField(NSKeyboardUI)
  49. - (void)setTitleWithMnemonic:(NSString *)stringWithAmpersand;
  50. @end
  51. #endif
  52.  
  53.  
  54. #ifndef STRICT_OPENSTEP
  55.  
  56. @interface NSTextField(NSTextFieldAttributedStringMethods)
  57. - (BOOL)allowsEditingTextAttributes;
  58. - (void)setAllowsEditingTextAttributes:(BOOL)flag;
  59. - (BOOL)importsGraphics;
  60. - (void)setImportsGraphics:(BOOL)flag;
  61. @end
  62.  
  63. #endif
  64.