mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-11 23:43:21 +00:00
21 lines
494 B
C
21 lines
494 B
C
|
#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
|