mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Pass authtoken in from user, and add a wrapper for web UI on Mac.
This commit is contained in:
parent
e58047eaa0
commit
5b54612d91
68 changed files with 7537 additions and 1 deletions
|
@ -0,0 +1,43 @@
|
|||
//
|
||||
// UserDefaults.h
|
||||
// MacGap
|
||||
//
|
||||
// Created by Jeff Hanbury on 16/04/2014.
|
||||
// Copyright (c) 2014 Twitter. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "WindowController.h"
|
||||
|
||||
@interface UserDefaults : NSObject
|
||||
|
||||
@property (nonatomic, retain) WebView *webView;
|
||||
|
||||
- (id) initWithWebView:(WebView *)view;
|
||||
- (NSString*) getMyDefaults;
|
||||
- (NSDictionary*) myDefaultsDictionary;
|
||||
- (void) removeObjectForKey:(NSString*)key;
|
||||
- (NSArray*) getUserDefaultsKeys;
|
||||
|
||||
- (NSString*) addPrefix:(NSString*)key;
|
||||
|
||||
- (void) setString:(NSString*)key withValue:(NSString*)value;
|
||||
- (NSString*) getString:(NSString*)key;
|
||||
|
||||
- (void) setInteger:(NSString*)key withValue:(NSString*)value;
|
||||
- (NSNumber*) getInteger:(NSString*)key;
|
||||
|
||||
- (void) setBool:(NSString*)key withValue:(NSString*)value;
|
||||
- (NSNumber*) getBool:(NSString*)key;
|
||||
|
||||
- (void) setFloat:(NSString*)key withValue:(NSString*)value;
|
||||
- (NSNumber*) getFloat:(NSString*)key;
|
||||
|
||||
// Could also be implemented:
|
||||
//– setObject:forKey:
|
||||
//– setDouble:forKey:
|
||||
//– setURL:forKey:
|
||||
|
||||
@end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue