Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: a6cb2e2861
Fetching contributors…

Cannot retrieve contributors at this time

74 lines (46 sloc) 1.348 kB
//
// NSLogConsole.h
// NSLogConsole
//
// Created by Patrick Geiller on 16/08/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
void NSLogProlog(char* file, int line);
@class NSLogConsoleView;
@interface NSLogConsole : NSObject {
BOOL autoOpens;
IBOutlet id window;
IBOutlet NSLogConsoleView* webView;
IBOutlet id searchField;
int original_stderr;
NSString* logPath;
NSFileHandle* fileHandle;
unsigned long long fileOffset;
}
+ (id)sharedConsole;
- (void)open;
- (void)close;
- (BOOL)isOpen;
- (IBAction)clear:(id)sender;
- (IBAction)searchChanged:(id)sender;
- (id)webView;
- (void)logData:(NSData*)data file:(char*)file lineNumber:(int)line;
- (void)updateLogWithFile:(char*)file lineNumber:(int)line;
@property BOOL autoOpens;
@end
@interface NSWindow(Goodies)
- (void)setBottomCornerRounded:(BOOL)a;
@end
@interface NSLogConsoleView : WebView {
// A message might trigger console opening, BUT the WebView will take time to load and won't be able to display messages yet.
// Queue them - they will be unqueued when WebView has loaded.
id messageQueue;
BOOL webViewLoaded;
}
- (void)logString:(NSString*)string file:(char*)file lineNumber:(int)line;
- (void)clear;
- (void)search:(NSString*)string;
- (BOOL)drawsBackground;
@end
Jump to Line
Something went wrong with that request. Please try again.