Re: Embedding a Check Box in an NSTableView
Re: Embedding a Check Box in an NSTableView
- Subject: Re: Embedding a Check Box in an NSTableView
- From: Stephane Sudre <email@hidden>
- Date: Fri, 2 Apr 2004 11:00:57 +0200
On Friday, April 2, 2004, at 06:42 AM, Hiro Fujimoto wrote:
Bruce,
Yes, its possible.
To put check box in the column ...
NSTableColumn* checkColumn = [aTable
tableColumnWithIdentifier:@"check"];
NSButtonCell* checkBoxCell = [NSButtonCell new];
[checkBoxCell setButtonType:NSSwitchButton];
[checkColumn setDataCell:checkBoxCell];
It's a good idea to specify it's an image only button cell
additionally. As it leads to better alignement results.
My $0.02
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.