Andrew 320's comment makes me think of a quote from a book... "No sense being mad at a cat for being a cat." I've tried to remember that many times during the years we've had a cat living in our house. Most frustrating for me have been the times my temper-mental tortoise shell calico decides for no apparent reason to swat me when I go to bet her. It makes me angry, but it's also frustrating not to know what she's thinking and be able to comfort her (she doesn't accept comfort well!)
Our other cat is annoying at times from the opposite end of the spectrum...she always wants attention and doesn't care what you're doing when she wants it! We often enjoy dinner on the couch while watching a movie. It's not terribly enjoyable to have a cat try to jump onto your lap when there's a plate full of food there! She's super smart and I think she knows better....but well, she thinks she's the boss. It's taken some time but we're managing to teach her where it's okay to sit while we're eating this way.