Skip to content
Browse files

Random code cleanup.

  • Loading branch information...
1 parent 7f1e3aa commit ee5318a130af120e24fb292a94ebee961a997093 @ccgus committed Jul 19, 2011
Showing with 12 additions and 12 deletions.
  1. +11 −11 src/JSTDocument.m
  2. +1 −1 src/JSTPluginMover.m
View
22 src/JSTDocument.m
@@ -14,7 +14,7 @@
#import "JSTPreprocessor.h"
@interface JSTDocument (SuperSecretItsPrivateDontEvenThinkOfUsingTheseMethodsOutsideThisClass)
-- (void) updateFont:(id)sender;
+- (void)updateFont:(id)sender;
@end
@@ -49,7 +49,7 @@ - (NSString *)windowNibName {
return @"JSTDocument";
}
-- (void) readFromFile:(NSURL*)fileURL {
+- (void)readFromFile:(NSURL*)fileURL {
NSError *err = 0x00;
NSString *src = [NSString stringWithContentsOfURL:[self fileURL] encoding:NSUTF8StringEncoding error:&err];
@@ -211,11 +211,11 @@ - (void)runScript:(NSString*)s {
}
-- (void) executeScript:(id)sender {
+- (void)executeScript:(id)sender {
[self runScript:[[jsTextView textStorage] string]];
}
-- (void) clearConsole:(id)sender {
+- (void)clearConsole:(id)sender {
// NSTextView hates it when there is no string to store attributes on, and -[outputTextView typingAttributes] doesn't always work.
if ([[outputTextView textStorage] length]) {
@@ -225,7 +225,7 @@ - (void) clearConsole:(id)sender {
[[[outputTextView textStorage] mutableString] setString:@""];
}
-- (void) executeSelectedScript:(id)sender {
+- (void)executeSelectedScript:(id)sender {
NSRange r = [jsTextView selectedRange];
@@ -239,7 +239,7 @@ - (void) executeSelectedScript:(id)sender {
}
-- (void) preprocessCodeAction:(id)sender {
+- (void)preprocessCodeAction:(id)sender {
NSString *code = [JSTPreprocessor preprocessCode:[[jsTextView textStorage] string]];
@@ -286,7 +286,7 @@ - (void)savePanelDidEndForApplicationSave:(NSSavePanel *)sheet returnCode:(int)r
}
}
-- (void) saveAsApplication:(id)sender {
+- (void)saveAsApplication:(id)sender {
NSSavePanel *savePanel = [NSSavePanel savePanel];
@@ -302,15 +302,15 @@ - (void) saveAsApplication:(id)sender {
}
-- (void) updateFont:(id)sender {
+- (void)updateFont:(id)sender {
[[jsTextView textStorage] addAttribute:NSFontAttributeName value:[[NSApp delegate] defaultEditorFont] range:NSMakeRange(0, [[jsTextView textStorage] length])];
[[outputTextView textStorage] addAttribute:NSFontAttributeName value:[[NSApp delegate] defaultEditorFont] range:NSMakeRange(0, [[outputTextView textStorage] length])];
}
-- (void) externalEditorAction:(id)sender {
+- (void)externalEditorAction:(id)sender {
if (_externalEditorFileWatcher) {
/// wait, what? Should we care?
@@ -358,7 +358,7 @@ - (void) externalEditorAction:(id)sender {
[[NSWorkspace sharedWorkspace] openFile:[[self fileURL] path] withApplication:appPath];
}
-- (void) fileWatcherDidRecieveFSEvent:(JSTFileWatcher*)fw {
+- (void)fileWatcherDidRecieveFSEvent:(JSTFileWatcher*)fw {
NSString *path = [fw path];
@@ -419,7 +419,7 @@ - (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar {
}
-- (void) copyBookmarkletToPasteboard:(id)sender {
+- (void)copyBookmarkletToPasteboard:(id)sender {
NSRange r = [jsTextView selectedRange];
View
2 src/JSTPluginMover.m
@@ -11,7 +11,7 @@
@implementation JSTPluginMover
-- (void) makeWindowControllers { }
+- (void)makeWindowControllers { }
- (NSData *)dataRepresentationOfType:(NSString *)type {
return nil;

0 comments on commit ee5318a

Please sign in to comment.
Something went wrong with that request. Please try again.