Skip to content

Commit

Permalink
Random code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccgus committed Jul 19, 2011
1 parent 7f1e3aa commit ee5318a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/JSTDocument.m
Expand Up @@ -14,7 +14,7 @@
#import "JSTPreprocessor.h"

@interface JSTDocument (SuperSecretItsPrivateDontEvenThinkOfUsingTheseMethodsOutsideThisClass)
- (void) updateFont:(id)sender;
- (void)updateFont:(id)sender;
@end


Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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]) {
Expand All @@ -225,7 +225,7 @@ - (void) clearConsole:(id)sender {
[[[outputTextView textStorage] mutableString] setString:@""];
}

- (void) executeSelectedScript:(id)sender {
- (void)executeSelectedScript:(id)sender {

NSRange r = [jsTextView selectedRange];

Expand All @@ -239,7 +239,7 @@ - (void) executeSelectedScript:(id)sender {

}

- (void) preprocessCodeAction:(id)sender {
- (void)preprocessCodeAction:(id)sender {

NSString *code = [JSTPreprocessor preprocessCode:[[jsTextView textStorage] string]];

Expand Down Expand Up @@ -286,7 +286,7 @@ - (void)savePanelDidEndForApplicationSave:(NSSavePanel *)sheet returnCode:(int)r
}
}

- (void) saveAsApplication:(id)sender {
- (void)saveAsApplication:(id)sender {

NSSavePanel *savePanel = [NSSavePanel savePanel];

Expand All @@ -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?
Expand Down Expand Up @@ -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];

Expand Down Expand Up @@ -419,7 +419,7 @@ - (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar {
}


- (void) copyBookmarkletToPasteboard:(id)sender {
- (void)copyBookmarkletToPasteboard:(id)sender {

NSRange r = [jsTextView selectedRange];

Expand Down
2 changes: 1 addition & 1 deletion src/JSTPluginMover.m
Expand Up @@ -11,7 +11,7 @@

@implementation JSTPluginMover

- (void) makeWindowControllers { }
- (void)makeWindowControllers { }

- (NSData *)dataRepresentationOfType:(NSString *)type {
return nil;
Expand Down

0 comments on commit ee5318a

Please sign in to comment.