NSButtonCell inside custom NSCell
in my cocoa application, I need a custom NSCell for an NSTableView. This NSCell subclass contains a custom NSButtonCell for handling a click (and two or three NSTextFieldCells for textual contents). You'll find a simplified example of my code below. @implementation TheCustomCell - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { // various NSTextFieldCells NSTextFieldCell *titleCell = [[NSTextFieldCell alloc] init]; .... // my custom NSButtonCell MyButtonCell *warningCell = [[MyButtonCell alloc] init]; [warningCell setTarget:self]; [warningCell setAction:@selector