The problem is with chatWindow
- either:
- It is
nil
- It is not bound to a UITextView (as its 'window' name implies)
- It is not visible (location is outside of the window or
hidden
is YES)
Check those.
A simple test would be to replace the entire computation that you've listed with:
chatWindow.text = @"Sample chat text";
When that fails look in detail at chatWindow (in the debugger or with NSLog (@"Window: %@", chatWindow)
)