Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (35 sloc) 1.253 kb
ee99867 @ccgus oh geeze
authored
1 //
2 // JSTalk.h
3 // jstalk
4 //
5 // Created by August Mueller on 1/15/09.
6 // Copyright 2009 Flying Meat Inc. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
2b2fe14 @ccgus oh my.
authored
10 #import "JSTBridge.h"
ee99867 @ccgus oh geeze
authored
11
12 @interface JSTalk : NSObject {
13 id _printController;
14 id _errorController;
2b2fe14 @ccgus oh my.
authored
15 JSTBridge *_bridge;
1a4ff63 Added support for some sort of JSTalk envirnoment vars, which you can st...
August Mueller authored
16 NSMutableDictionary *_env;
2f87acd @ccgus Who would have thought that writing a decent preprocessor would be so fr...
authored
17 BOOL _shouldPreprocess;
ee99867 @ccgus oh geeze
authored
18 }
19
20 @property (assign) id printController;
21 @property (assign) id errorController;
2b2fe14 @ccgus oh my.
authored
22 @property (retain) JSTBridge *bridge;
1a4ff63 Added support for some sort of JSTalk envirnoment vars, which you can st...
August Mueller authored
23 @property (retain) NSMutableDictionary *env;
2f87acd @ccgus Who would have thought that writing a decent preprocessor would be so fr...
authored
24 @property (assign) BOOL shouldPreprocess;
ee99867 @ccgus oh geeze
authored
25
06d1f04 @ccgus Hey, it's mostly stopped crashing all the time now!
authored
26 - (id)executeString:(NSString*)str;
54c1345 @ccgus Random checkpoint for stuff.
authored
27 //- (void)pushObject:(id)obj withName:(NSString*)name;
c07386b @ccgus Added a new method "include" which includes and evals the named file
authored
28 - (void)deleteObjectWithName:(NSString*)name;
ee99867 @ccgus oh geeze
authored
29
c07386b @ccgus Added a new method "include" which includes and evals the named file
authored
30 - (id)callFunctionNamed:(NSString*)name withArguments:(NSArray*)args;
ee99867 @ccgus oh geeze
authored
31
c07386b @ccgus Added a new method "include" which includes and evals the named file
authored
32 + (void)listen;
1d83afe @ccgus Added support for double clicking JSTalk plugins to install them.
authored
33 + (void)resetPlugins;
c07386b @ccgus Added a new method "include" which includes and evals the named file
authored
34 + (void)setShouldLoadJSTPlugins:(BOOL)b;
35 + (id)application:(NSString*)app;
2f87acd @ccgus Who would have thought that writing a decent preprocessor would be so fr...
authored
36 + (id)app:(NSString*)app;
ee99867 @ccgus oh geeze
authored
37
38 @end
1d77244 @ccgus stupid stuff.
authored
39
40 // this is used by the preprocessor, to return strings back for cases of @"foo".
41 // so, [@"foo" uppercaseString] will be turned into objc_msgSend(JSTNSString("foo"), "uppercaseString");
42 // and it just does the right thing. It'll return itself, but it forces the conversion of the js string into a cocoa string
43 NSString *JSTNSString(NSString *s);
Something went wrong with that request. Please try again.