NSInteger (nor BOOL) isn't an object, it's just a scalar value (in
fact, an int), so you don't need to retain it - I expect trying to
send a message to it for any value other than 0 will crash if it
compiles at all. It should work if you just get rid of the retain/
release messages. KVC inte
Hi,
I've got an NSTableView with in the first column filled with
checkboxes (NSButtonCell), 2nd and 3rd columns have an NSImage and
NSString.
The NSImage and NSString column work fine. However, I cannot succeed
to set the checkboxes and edit the checkboxes. I'm using this code:
-(id)tab
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
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:NSSma
Hi,
I want to bind the value of a checkbox in a column of a NSTableView to
a custom object managed by an NSArrayController. I have the
NSArrayController setup to manage a class I've created using Obj-C 2.0
properties, and added keys in the IB inspector for the
NSArrayController to match t