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 PROTECTED] > 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to