Files
atom/Atom/Classes/AtomApp.h
Corey Johnson 99cbb5e0a2 Cache compiled CoffeeScript on the Objective-C side.
This is a temporary fix, it just stores compiled scripts in memory. It
doesn't speed up the app start since the scripts need to be compiled
once. Here are some numbers.

#file load
pre: 1.5 seconds
post: 0.25 seconds

#spec load
pre: 5.4 seconds
post: 0.36 seconds
2012-01-30 16:19:28 -08:00

18 lines
484 B
Objective-C

#import <Cocoa/Cocoa.h>
@class AtomController, AtomMenuItem;
@interface AtomApp : NSApplication <NSApplicationDelegate>
@property (nonatomic, retain) NSMutableArray *controllers;
- (void)removeController:(AtomController *)controller;
- (IBAction)runSpecs:(id)sender;
- (void)performActionForMenuItem:(AtomMenuItem *)item;
- (void)resetMainMenu;
- (NSString *)getCachedScript:(NSString *)filePath;
- (void)setCachedScript:(NSString *)filePath contents:(NSString *)contents;
@end