Re: Bindings & Checkbox in NSTableView [SOLVED]
Re: Bindings & Checkbox in NSTableView [SOLVED]
- Subject: Re: Bindings & Checkbox in NSTableView [SOLVED]
- From: Steven Huey <email@hidden>
- Date: Wed, 7 May 2008 07:35:27 -0400
Hamish,
Thanks, it works using the Check Box Cell from the IB Library.
It seems the approach to setting the data cell I was using was the
recommended one based on searching the archives, does anyone have an
idea why it wasn't working?
Thanks,
Steve
On May 6, 2008, at 4:17 PM, Hamish Allan wrote:
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
--
Steven Huey Software - http://www.stevenhuey.com
_______________________________________________
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