Index: src/OFPlugin.h ================================================================== --- src/OFPlugin.h +++ src/OFPlugin.h @@ -46,11 +46,11 @@ * @brief Loads a plugin from a file. * * @param path Path to the plugin file. The suffix is appended automatically. * @return The loaded plugin */ -+ (OF_KINDOF(OFPlugin *))pluginFromFile: (OFString *)path; ++ (OF_KINDOF(OFPlugin *))pluginWithPath: (OFString *)path; @end #ifdef __cplusplus extern "C" { #endif Index: src/OFPlugin.m ================================================================== --- src/OFPlugin.m +++ src/OFPlugin.m @@ -79,11 +79,11 @@ return nil; #endif } @implementation OFPlugin -+ (id)pluginFromFile: (OFString *)path ++ (id)pluginWithPath: (OFString *)path { void *pool = objc_autoreleasePoolPush(); of_plugin_handle_t handle; init_plugin_t initPlugin; OFPlugin *plugin; Index: tests/OFPluginTests.m ================================================================== --- tests/OFPluginTests.m +++ tests/OFPluginTests.m @@ -31,13 +31,13 @@ - (void)pluginTests { void *pool = objc_autoreleasePoolPush(); TestPlugin *plugin; - TEST(@"+[pluginFromFile:]", - (plugin = [OFPlugin pluginFromFile: PLUGIN_PATH])) + TEST(@"+[pluginWithPath:]", + (plugin = [OFPlugin pluginWithPath: PLUGIN_PATH])) TEST(@"TestPlugin's -[test:]", [plugin test: 1234] == 2468) objc_autoreleasePoolPop(pool); } @end