Re: Bindings & Checkbox in NSTableView
Re: Bindings & Checkbox in NSTableView
- Subject: Re: Bindings & Checkbox in NSTableView
- From: "Hamish Allan" <email@hidden>
- Date: Tue, 6 May 2008 21:17:17 +0100
On Tue, May 6, 2008 at 8:31 PM, Steven Huey <email@hidden> wrote:
> I set the table column to use a checkbox using:
>
> NSButtonCell *cell = [[NSButtonCell alloc] init];
> [cell setButtonType:NSSwitchButton];
> [cell setImagePosition:NSImageOnly];
> [cell setControlSize:NSSmallControlSize];
> [[myTable tableColumnWithIdentifier:@"active"] setDataCell:cell];
Before further examining why your existing approach is failing, you
might first of all try setting up the table column to use a checkbox
in Interface Builder rather than in code (drag a check box cell from
the palette over the existing text cell of the table column).
Hamish
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden