Re: Hidden NSButtonCells in a tableview [SOLVED]
Re: Hidden NSButtonCells in a tableview [SOLVED]
- Subject: Re: Hidden NSButtonCells in a tableview [SOLVED]
- From: Fredrik Olsson <email@hidden>
- Date: Thu, 17 Aug 2006 16:57:42 +0200
Stephane Sudre skrev:
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.
Perfect, thanks!
// Fredrik Olsson
_______________________________________________
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