Replaced method indexes with getMethodIndex() calls.
Use the NS_ISupports_IID directly.