ConsoleView.h 359 B

1234567891011121314151617181920212223242526
  1. #import <Cocoa/Cocoa.h>
  2. /*
  3. * A basic console view
  4. */
  5. @interface ConsoleView : NSView {
  6. @private
  7. NSMutableArray *array;
  8. NSDictionary *attr;
  9. BOOL endScroll;
  10. }
  11. - (void)scrollToEnd:(BOOL)enable;
  12. /*
  13. * Append the given line
  14. */
  15. - (void)appendLine:(NSString*)line;
  16. /*
  17. * Append multiple lines, skip blank ones
  18. */
  19. - (void)appendText:(NSString*)text;
  20. @end