Instance Method

setProperty:forKey:

Attempts to set the value of a given property of the receiver and returns a Boolean value that indicates whether the value is accepted by the receiver.

Declaration

- (BOOL)setProperty:(id)property forKey:(NSStreamPropertyKey)key;

Parameters

property

The value for key.

key

The key for one of the receiver's properties. See Constants for a description of the available property-key constants and expected values.

Return Value

YES if the value is accepted by the receiver, otherwise NO.

See Also

Configuring Streams

- propertyForKey:

Returns the receiver’s property for a given key.

delegate

Sets the receiver’s delegate.