Re: Hidden NSButtonCells in a tableview
Re: Hidden NSButtonCells in a tableview
- Subject: Re: Hidden NSButtonCells in a tableview
- From: Stephane Sudre <email@hidden>
- Date: Thu, 17 Aug 2006 15:50:06 +0200
On 17 août 06, at 15:21, Fredrik Olsson wrote:
I use tableView:willDisplayCell:... to change the buttons cell's
title. The button cells are checkboxes. For buttons cells without a
title, I want to hide the checkbox as well.
setHidden: is not available, so I have tried to change the type, and
bezelStyle, but no luck. Do I really need to override drawInFrame?
To hide it:
[(NSButtonCell *)cell setImagePosition: NSNoImage];
To show it:
[(NSButtonCell *)cell setImagePosition: NSImageOnly];
You may want to disable/enable the cell too.
--
Stephane Sudre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden