@@ -18,11 +18,11 @@ #import "OFINIFileSettings.h" #import "OFArray.h" #import "OFINIFile.h" #import "OFString.h" #import "OFSystemInfo.h" -#import "OFURL.h" +#import "OFURI.h" @implementation OFINIFileSettings - (instancetype)initWithApplicationName: (OFString *)applicationName { self = [super initWithApplicationName: applicationName]; @@ -30,13 +30,13 @@ @try { void *pool = objc_autoreleasePoolPush(); OFString *fileName; fileName = [applicationName stringByAppendingString: @".ini"]; - _fileURL = [[[OFSystemInfo userConfigURL] - URLByAppendingPathComponent: fileName] copy]; - _INIFile = [[OFINIFile alloc] initWithURL: _fileURL]; + _fileURI = [[[OFSystemInfo userConfigURI] + URIByAppendingPathComponent: fileName] copy]; + _INIFile = [[OFINIFile alloc] initWithURI: _fileURI]; objc_autoreleasePoolPop(pool); } @catch (id e) { [self release]; @throw e; @@ -45,11 +45,11 @@ return self; } - (void)dealloc { - [_fileURL release]; + [_fileURI release]; [_INIFile release]; [super dealloc]; } @@ -241,8 +241,8 @@ objc_autoreleasePoolPop(pool); } - (void)save { - [_INIFile writeToURL: _fileURL]; + [_INIFile writeToURI: _fileURI]; } @end