how to add/remove button to a cell in tableview

"Abhijeet Singh" <[email protected]> Tue, 03 May 2011 17:31:58 +0530
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Hi,There are four columns in my table view. The last column is empty. At run time I want to add a button to the last column depending upon a condition. If a condition is true for a row, button should be added (appeared) to the last column of the row. If condition is not true any more for a row the button should be removed from the last column of the row. I have used  (NSCell *tableView:(NSTableView *)tableView dataCellForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)rowIt adds the button but i am not able to remove it from the cell. Thanks & RegardsAbhijeetDear macosxdev ! Get Yourself a cool, short @in.com Email ID now!