A method is called when a return button on the keyboard is pressed. After calling another method which returns an integer a message is created based on that integer. The message
Sean is right - you don't need to call [message release] here, because you're never actually retaining the message object.
Instead of just saying message = @"string", you need to say message = [NSString stringWithString:@"string"]; To be completely honest I'm not sure why (maybe someone can comment and I can improve this post!) but that should do the trick.