53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
if (![fileManager directoryExistsAtPath: userDataPath])
[fileManager createDirectoryAtPath: userDataPath];
_path = [[userDataPath stringByAppendingPathComponent:
@"sites.msgpack"] retain];
@try {
_storage = [[[OFDataArray
dataArrayWithContentsOfFile: _path]
messagePackValue] mutableCopy];
} @catch (id e) {
_storage = [[OFMutableDictionary alloc] init];
}
_sites = [[[_storage allKeys] sortedArray] retain];
|
|
<
|
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
if (![fileManager directoryExistsAtPath: userDataPath])
[fileManager createDirectoryAtPath: userDataPath];
_path = [[userDataPath stringByAppendingPathComponent:
@"sites.msgpack"] retain];
@try {
_storage = [[[OFData dataWithContentsOfFile: _path]
messagePackValue] mutableCopy];
} @catch (id e) {
_storage = [[OFMutableDictionary alloc] init];
}
_sites = [[[_storage allKeys] sortedArray] retain];
|