mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
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
18 lines
484 B
Objective-C
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
|