Is your cat fixed? If not, that might be the next step. All the cats I've ever had have been fixed and they've never done that spraying thing.

(Am I talking about the right thing? I admit I don't know too much about cats.. o_o' lol..)