Using getName on parameter


#1

Hi, I want to grab the display name of a parameter:
I’m doing this

	AudioProcessorParameterWithID* par = paraTree.getParameter(nameID);
	jassert(par != nullptr);
	return par->name;

Which is fine. But I can’t use ‘getName’ because it’s marked as private!
Which is a bit odd to be honest. Anyone know why?


#2

I wondered the same thing. Seems backwards for the member to be accessible but its getter is private. I usually do it the other way around.