Paul Martz wrote on 2009-12-15: > I think we've all been saying supportsExtension when we meant to say > axxeptsExtension (which is public). I know I always get them confused.
acceptsExtension() checks if the plugin handles that extension; if you want to add an extension so the plugin handles it, you need to call supportsExtension(). > Thrall, Bryan wrote: >> Robert Osfield wrote on 2009-12-15: >>> FYI, if you really want to try forcing a plugin to handle extensions >>> it was never designed to handle you could try loading the plugin and >>> then calling supportsExtension on it. >> >> Just to be pedantic, supportsExtension() is protected, so you'd need to: >> >> 1) create a subclass of the plugin's ReaderWriter (which would pull > in the plugin DLL, registering the plugin with the Registry) that calls > supportsExtension() >> 2) Remove the plugin's ReaderWriter from the Registry >> 3) Register your subclass with the Registry >> >> I'd guess that's about as much work as writing a pseudoloader :) -- Bryan Thrall FlightSafety International [email protected] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

