Instance Property インスタンスプロパティ

delegate

Sets the receiver’s delegate. レシーバのもつ委任先を設定します。

Declaration 宣言

@property(assign) id<NSStreamDelegate> delegate;

Parameters パラメータ

delegate

The delegate for the receiver. レシーバに対する委任先。

Discussion 議論

By default, a stream is its own delegate, and subclasses of NSInputStream and NSOutputStream must maintain this contract. If you override this method in a subclass, passing nil must restore the receiver as its own delegate. Delegates are not retained. 初期状態では、ストリームはそれ自身が委任先です、そしてNSInputStreamNSOutputStreamのサブクラスはこの協定を保守しなければなりません。あなたがこのメソッドをサブクラスにおいてオーバーライドするならば、nilを渡すことは、レシーバをそれ自身の委任先であるように復元しなければなりません。委任先は保有されません。

To learn about delegates and delegation, read "Delegation" in Cocoa Fundamentals Guide. 委任先と委任について学ぶために、"Delegation" をCocoa Fundamentals Guideで見てください。

See Also 参照

Configuring Streams ストリームを構成設定する