The Donald is bluffing and acting as a distraction.
I’m not sure what his motive is but pretty certain he actually voted for Obama in 2008.
He donated the max to McCain, and very publicly and strongly endorsed him. It’s even noted on HuffPo that Trump voted for McCain.