mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
editor is more editorish
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#import "AtomController.h"
|
||||
#import "AtomApp.h"
|
||||
|
||||
#import <WebKit/WebKit.h>
|
||||
#import "JSCocoa.h"
|
||||
|
||||
#import <WebKit/WebKit.h>
|
||||
#import <stdio.h>
|
||||
|
||||
@implementation AtomController
|
||||
|
||||
@synthesize webView, path, jscocoa;
|
||||
@@ -48,6 +50,16 @@
|
||||
[super close];
|
||||
}
|
||||
|
||||
- (NSString *)tempfile {
|
||||
char *directory = "/tmp";
|
||||
char *prefix = "temp-file";
|
||||
char *tmpPath = tempnam(directory, prefix);
|
||||
NSString *tmpPathString = [NSString stringWithUTF8String:tmpPath];
|
||||
free(tmpPath);
|
||||
|
||||
return tmpPathString;
|
||||
}
|
||||
|
||||
// WebUIDelegate Protocol
|
||||
- (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary *)element defaultMenuItems:(NSArray *)defaultMenuItems {
|
||||
return defaultMenuItems;
|
||||
|
||||
Reference in New Issue
Block a user