1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/Watch/Bridge/TGBridgePresetsSignals.m
2016-02-25 01:03:51 +01:00

18 lines
485 B
Objective-C

#import "TGBridgePresetsSignals.h"
@implementation TGBridgePresetsSignals
+ (NSURL *)presetsURL
{
static dispatch_once_t onceToken;
static NSURL *presetsURL;
dispatch_once(&onceToken, ^
{
NSString *documentsPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0];
presetsURL = [[NSURL alloc] initFileURLWithPath:[documentsPath stringByAppendingPathComponent:@"presets.data"]];
});
return presetsURL;
}
@end