No way to load the new Color methods in the API2

There seems to be no way to load the new Color methods in the API2

Here are some tests…

First test was if Color was a class, which it is not.

2nd test seemed to work but REALLoadGlobalMethod just calls REALLoadFrameworkMethod and does nothing with the first parameter, so it ends up loading the old HighlightColor function.

3rd test was just last I could think of, but of course did not work either.

REALclassRef colorRef = REALGetClassRef(“Color”);

if (colorRef == NULL)
{
	OutputDebugString("Color is not a class");
}
else
{
	void* highlight = REALLoadSharedMethod(colorRef, "HighlightColor() as Color");

	if (highlight == NULL)
	{
		OutputDebugString("Could not load HighlightColor");
	}
	else
	{
		OutputDebugString("Loaded HighlightColor");
	}
}

void* highlight2 = REALLoadGlobalMethod("Color", "HighlightColor() as Color");

if (highlight2 == NULL)
{
	OutputDebugString("Could not load HighlightColor - test2");
}
else
{
	OutputDebugString("Loaded HighlightColor - test2");
}

void* highlight3 = REALLoadFrameworkMethod("Color.HighlightColor() as Color");

if (highlight3 == NULL)
{
	OutputDebugString("Could not load HighlightColor - test3");
}
else
{
	OutputDebugString("Loaded HighlightColor - test3");
}

[quote=457744:@Björn Eiríksson]There seems to be no way to load the new Color methods in the API2

Here are some tests…

First test was if Color was a class, which it is not.
[/quote]
A module