Snoopy,
I primer the rim in black first and then mount the tire.
After the tire is on I tape it off and then paint the rim gloss black.
I cannot do it before hand because the process of installing the tire
would badly scratch the edge of the rim.
Jules