| Conforms to | |
| Framework | /System/Library/Frameworks/Foundation.framework |
| Availability | Available in Mac OS X v10.6 and later. |
| Companion guide | |
| Declared in | NSStream.h |
| Related sample code |
The NSStreamDelegate protocol defines the optional methods implemented by delegates of NSStream objects.
The delegate receives this message when a given event has occurred on a given stream.
- (void)stream:(NSStream *)theStream handleEvent:(NSStreamEvent)streamEvent
The stream on which streamEvent occurred.
The stream event that occurred,
The delegate receives this message only if theStream is scheduled on a run loop. The message is sent on the stream object’s thread. The delegate should examine streamEvent to determine the appropriate action it should take.
NSStream.hLast updated: 2009-04-20