mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-26 18:15:36 +00:00
Update dataFromPropertyList usage to remove deprecation warning
This commit is contained in:
1 parent
987da2b812
commit
27fa37a7e1
1 file changed
+10
-2
@@ -377,8 +377,16 @@ NSString * const XCCCappuccinoProjectLastEventIDKey = @"XCCCappuccinoPro
|
||||
|
||||
- (void)_writeXcodeCappIgnoreFile
|
||||
{
|
||||
NSData *data = [NSPropertyListSerialization dataFromPropertyList:self->settings format:NSPropertyListXMLFormat_v1_0 errorDescription:nil];
|
||||
|
||||
# pragma TODO
|
||||
// More verifiable user notification of error?
|
||||
NSError *error = nil;
|
||||
NSData *data = [NSPropertyListSerialization dataWithPropertyList: self->settings
|
||||
format: NSPropertyListXMLFormat_v1_0
|
||||
options: 0
|
||||
error: &error];
|
||||
if(data != nil){
|
||||
NSLog(@"error %ld",(long)[error code]);
|
||||
}
|
||||
[data writeToFile:self.settingsPath atomically:YES];
|
||||
|
||||
NSFileManager *fm = [NSFileManager defaultManager];
|
||||
|
||||
Reference in new issue
Block a user