@@ -30,14 +30,13 @@ @try { void *pool = objc_autoreleasePoolPush(); OFString *fileName; fileName = [applicationName stringByAppendingString: @".ini"]; - _filePath = [[[OFSystemInfo - userConfigURL].fileSystemRepresentation - stringByAppendingPathComponent: fileName] copy]; - _INIFile = [[OFINIFile alloc] initWithPath: _filePath]; + _fileURL = [[[OFSystemInfo userConfigURL] + URLByAppendingPathComponent: fileName] copy]; + _INIFile = [[OFINIFile alloc] initWithURL: _fileURL]; objc_autoreleasePoolPop(pool); } @catch (id e) { [self release]; @throw e; @@ -46,11 +45,11 @@ return self; } - (void)dealloc { - [_filePath release]; + [_fileURL release]; [_INIFile release]; [super dealloc]; } @@ -242,8 +241,8 @@ objc_autoreleasePoolPop(pool); } - (void)save { - [_INIFile writeToFile: _filePath]; + [_INIFile writeToURL: _fileURL]; } @end