Index: src/OFINIFile.h ================================================================== --- src/OFINIFile.h +++ src/OFINIFile.h @@ -30,10 +30,15 @@ @interface OFINIFile: OFObject { OFMutableArray OF_GENERIC(OFINICategory *) *_categories; } +/** + * @brief All categories in the INI file. + */ +@property (readonly, nonatomic) OFArray OF_GENERIC(OFINICategory *) *categories; + /** * @brief Creates a new OFINIFile with the contents of the specified file. * * @param path The path to the file whose contents the OFINIFile should contain * Index: src/OFINIFile.m ================================================================== --- src/OFINIFile.m +++ src/OFINIFile.m @@ -44,10 +44,12 @@ return true; } @implementation OFINIFile +@synthesize categories = _categories; + + (instancetype)fileWithPath: (OFString *)path { return [[[self alloc] initWithPath: path] autorelease]; }