mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-29 15:07:04 +00:00
Remove deprecation warning when reading settings plist
This commit is contained in:
@@ -341,8 +341,15 @@ NSString * const XCCCappuccinoProjectLastEventIDKey = @"XCCCappuccinoPro
|
||||
|
||||
- (void)_writeSettings
|
||||
{
|
||||
NSData *data = [NSPropertyListSerialization dataFromPropertyList:self->settings format:NSPropertyListXMLFormat_v1_0 errorDescription:nil];
|
||||
|
||||
# pragma mark -- TODO
|
||||
// Error should be handled with user interaction,
|
||||
// although this hasn't previously been so either.
|
||||
// Immedate concern is with removing noisy deprecation warnings.
|
||||
NSError* error = nil;
|
||||
NSData* data = [NSPropertyListSerialization dataWithPropertyList:self->settings format:NSPropertyListBinaryFormat_v1_0 options:0 error:&error];
|
||||
if(data != nil){
|
||||
NSLog(@"error %ld",(long)[error code]);
|
||||
}
|
||||
[data writeToFile:self.settingsPath atomically:YES];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user