Instance Method インスタンスメソッド

stream:handleEvent:

The delegate receives this message when a given event has occurred on a given stream. 委任先はこのメッセージを、ある与えられたイベントがある与えられたストリーム上で発生した時に受け取ります。

Declaration 宣言

- (void)stream:(NSStream *)aStream 
   handleEvent:(NSStreamEvent)eventCode;

Parameters パラメータ

theStream

The stream on which streamEvent occurred. それの上でstreamEventが発生したストリーム。

streamEvent

The stream event that occurred. 発生したストリームイベント。

Discussion 議論

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. 委任先は、このメッセージをtheStreamが実行ループ上で予定される場合に限り受け取ります。メッセージは、ストリームオブジェクトのもつスレッド上で送られます。委任先は、streamEventを検査して、それが取るべき適切な動作を決定するべきです。

See Also 参照

Related Documentation 関連文書