As far as spellcasting being "useless" in combat, here's the traditional way to deal touch attacks:
Turn 1: 5' step back, cast spell
Turn 2: If the baddie follows you, then hit him with the spell. Otherwise, take a 5' step in on him, and deliver touch attack.
No AoO incurred that way. :)