In my current project inside the file ViewController.m, I am running the method:
[[connection writer] writeData: data];
It returns the war
Make sure [connection writer] is actually returning a TCPWriter*. If it is returning an id, then the compiler will not know which writeData to use. Also, make sure you are importing the TCPWriter.h file - if the compiler does not see the header files, it will default to returning id, which will get you back to the same problem.
Try
TCPWriter* writer = [connection writer];
[writer writeData: data];
or
[(TCPWriter*)[connection writer] writeData: data];
As an alternative to the splendid answer above, you can cast the object to the right type to get rid of the warning too, like so:
[(NSView*)textView setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable)]; // for horizontal scrolling