about summary refs log tree commit diff
path: root/src/osxlaunch/server.m
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-04-13 20:37:12 +0200
committeroy <Tom_Adams@web.de>2011-04-13 20:37:12 +0200
commit06115dd49dca2f8eb5f14606437e8fd20037cc4d (patch)
tree5ec4bca6158319b3f5285d7689c5f94ae8da8c93 /src/osxlaunch/server.m
parent63e059b8fff6498e42b765a1dca000e53005ea77 (diff)
downloadzcatch-06115dd49dca2f8eb5f14606437e8fd20037cc4d.tar.gz
zcatch-06115dd49dca2f8eb5f14606437e8fd20037cc4d.zip
added "Whitespace and line Endings cleanup" by GreYFoX
Diffstat (limited to 'src/osxlaunch/server.m')
-rw-r--r--src/osxlaunch/server.m28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/osxlaunch/server.m b/src/osxlaunch/server.m
index 6c22efc5..5ae32c6f 100644
--- a/src/osxlaunch/server.m
+++ b/src/osxlaunch/server.m
@@ -13,9 +13,9 @@
 {
 	NSPipe *pipe;
 	task = t;
-    pipe = [NSPipe pipe];
-    [task setStandardOutput: pipe];
-    file = [pipe fileHandleForReading];
+	pipe = [NSPipe pipe];
+	[task setStandardOutput: pipe];
+	file = [pipe fileHandleForReading];
 
 	[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(outputNotification:) name: NSFileHandleReadCompletionNotification object: file];
 
@@ -30,8 +30,8 @@
 
 	[[self textStorage] appendAttributedString: attrstr];
 	int length = [[self textStorage] length];
-    NSRange range = NSMakeRange(length, 0);
-    [self scrollRangeToVisible: range];
+	NSRange range = NSMakeRange(length, 0);
+	[self scrollRangeToVisible: range];
 
 	[attrstr release];
 	[string release];
@@ -41,18 +41,18 @@
 -(void)windowWillClose:(NSNotification *)notification
 {
 	[task terminate];
-    [NSApp terminate:self];
+	[NSApp terminate:self];
 }
 @end
 
 void runServer()
 {
-    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-    NSApp = [NSApplication sharedApplication];
+	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+	NSApp = [NSApplication sharedApplication];
 	NSBundle* mainBundle = [NSBundle mainBundle];
 	NSTask *task;
-    task = [[NSTask alloc] init];
-	[task setCurrentDirectoryPath: [mainBundle resourcePath]]; 
+	task = [[NSTask alloc] init];
+	[task setCurrentDirectoryPath: [mainBundle resourcePath]];
 
 	// get a server config
 	NSOpenPanel* openDlg = [NSOpenPanel openPanel];
@@ -77,8 +77,8 @@ void runServer()
 
 	window = [[NSWindow alloc]
 		initWithContentRect: graphicsRect
-		styleMask: NSTitledWindowMask 
-		| NSClosableWindowMask 
+		styleMask: NSTitledWindowMask
+		| NSClosableWindowMask
 		| NSMiniaturizableWindowMask
 		backing: NSBackingStoreBuffered
 		defer: NO];
@@ -100,8 +100,8 @@ void runServer()
 	[NSApp run];
 	[task terminate];
 
-    [NSApp release];
-    [pool release];
+	[NSApp release];
+	[pool release];
 }
 
 int main (int argc, char **argv)