setControlView:

Sets the receiver's control view, the view in which it is drawn.

Declaration

- (void)setControlView:(NSView *)view

Parameters

view

The view object, which is normally an NSControl view. Pass in nil if the receiver has no control view (usually because it hasn’t yet been placed in the view hierarchy).

Overview

The control view is typically set in the receiver’s implementation of drawWithFrame:inView: (NSCell).

See Also

Managing the Cell’s View

- controlView

Returns the view in which the receiver was last drawn.