fixed posting plain messages

This commit is contained in:
Jeena Paradies 2012-10-29 23:45:47 +01:00
parent 5bf8ca3fb5
commit 3244f092a3
2 changed files with 37 additions and 5 deletions

View file

@ -88,7 +88,7 @@
}
-(void)controlTextDidChange:(NSNotification *)aNotification {
NSInteger c = 140 - [[textField stringValue] length];
NSInteger c = MESSAGE_MAX_LENGTH - [[textField stringValue] length];
[counter setIntValue:c];
if(c < 0) {
[counter setTextColor:[NSColor redColor]];