Re: NSTableView and check boxes (for the hundredth time)
Re: NSTableView and check boxes (for the hundredth time)
- Subject: Re: NSTableView and check boxes (for the hundredth time)
- From: Tom Davie <email@hidden>
- Date: Fri, 4 Oct 2002 09:07:40 +0100
>
On Thursday, October 3, 2002, at 08:03 AM, Vladimir Pilipyuk wrote:
>
>
> Hi Jan,
>
>
>
> Your code should display check boxes in the @"status"
>
column, it seems
>
> OK. Are you sure, you set column identifier in IB correctly?
>
>
Yes, I selected the table column, and under Attributes in the info
>
panel I set the identifier to be "status" (without the quotes.)
>
>
It seems as if all the code in awakeFromNib is never having
>
an effect,
>
since all I ever get in the column is a 1 or 0, depending on
>
what I set
>
numberWithBool: to be. The exact same same thing happens
>
with all the
>
code in awakeFromNib removed. How could this be?
>
>
Confused,
>
>
-Jan Van Tol
I had this precise problem with an NSOutline view - the problem appeared to
be that I was releaseing the NSButtonCell that I used to replace the cell in
the table. You need to store it in the controller class and only release
when you are finnished with the table.
_______________________________________________
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.