@@ -94,11 +94,11 @@ #endif return true; } -+ (OF_KINDOF(OFURLHandler *))handlerForURL: (OFURL *)URL ++ (OFURLHandler *)handlerForURL: (OFURL *)URL { OF_KINDOF(OFURLHandler *) handler; #ifdef OF_HAVE_THREADS [mutex lock]; @@ -114,10 +114,15 @@ if (handler == nil) @throw [OFUnsupportedProtocolException exceptionWithURL: URL]; return handler; } + ++ (OFStream *)openItemAtURL: (OFURL *)URL mode: (OFString *)mode +{ + return [[self handlerForURL: URL] openItemAtURL: URL mode: mode]; +} - (instancetype)init { OF_INVALID_INIT_METHOD }