Here's what I'm trying to do:
input = [[NSString alloc] initWithUTF8String:inputBuffer];
bla bla bla
2010-11-08 23:17:03.670 TextGame[51147:a0f] bla
scanf("%s", inputBuffer); only reads a characters until a space is encountered. Therefore you get only "bla" stored in the buffer. You should use
gets(inputBuffer). This function "Reads characters from stdin and stores them as a string into str until a newline character ('\n') or the End-of-File is reached."