I'm reading NSFileHandleReadCompletionNotification messages from the NSNotificationCenter to receive messages from an NSTask. The problem is that the command line program I'm calling is relatively slow to output lines, and it seems that the NSFileHandleReadCompletionNotification message gets posted relatively infrequently (I guess when the buffer fills up).
Is there another Notification message I can use that would post a notification or every line, or is there a way to make the buffer smaller?
Edit: To be clear, I read that the buffer size is "imited to the buffer size of the underlying operating system" in the NSFileHandle documentation, so, I'm hoping there's some other trick.