Pass authtoken in from user, and add a wrapper for web UI on Mac.
This commit is contained in:
20
ext/mac-ui-macgap1-wrapper/MacGap/Classes/Utils.h
Normal file
20
ext/mac-ui-macgap1-wrapper/MacGap/Classes/Utils.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <Webkit/WebScriptObject.h>
|
||||
|
||||
#define DEG_EPS 0.001
|
||||
#define fequal(a,b) (fabs((a) - (b)) < DEG_EPS)
|
||||
#define fequalzero(a) (fabs(a) < DEG_EPS)
|
||||
|
||||
@class LoadingView;
|
||||
|
||||
@interface Utils : NSObject {
|
||||
}
|
||||
|
||||
- (float) titleBarHeight:(NSWindow*)aWindow;
|
||||
- (NSString*) pathForResource:(NSString*)resourcepath;
|
||||
- (NSString*) convertDictionaryToJSON:(NSDictionary*)dict;
|
||||
- (NSArray*) convertJSarrayToNSArray:(WebScriptObject*)jsArray;
|
||||
|
||||
+ (Utils*) sharedInstance;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user