1. Do you get an error, or just nothing happens?
2. Can you post the actual code you're using to do it? In the example you give, the call is misspelled (but probably just a typo here?)
3. Are you sure that myWindow is a valid, initialized window? For example, is it connected to a window in IB? Are you trying to call setBackgroundColor: in a method that gets called before awakeFromNib:? If you are, the window might be invalid or not receive messages yet.