Instance Method

removePort:forMode:

Removes a port from the specified input mode of the run loop.

Declaration

- (void)removePort:(NSPort *)aPort forMode:(NSRunLoopMode)mode;

Parameters

aPort

The port to remove from the receiver.

mode

The mode from which to remove aPort. You may specify a custom mode or use one of the modes listed in Run Loop Modes.

Discussion

If you added the port to multiple input modes, you must remove it from each mode separately.

See Also

Managing Ports

- addPort:forMode:

Adds a port as an input source to the specified mode of the run loop.