Re: Making NSCell invisible in an NSOutlineView
Re: Making NSCell invisible in an NSOutlineView
- Subject: Re: Making NSCell invisible in an NSOutlineView
- From: "W. W. Gilpin" <email@hidden>
- Date: Thu, 7 Apr 2005 17:54:10 -0500
On Apr 6, 2005, at 6:16 PM, Sunil Vemuri wrote:
- (void)outlineView:(NSOutlineView *)olv willDisplayCell:(NSCell
*)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item {
NSString *identifier = [tableColumn identifier];
if ([identifier isEqualToString:@"col1"]) {
if (![item isVisible]) {
[cell setEnabled:NO]; // <-- This disables the checkbox
successfully
// [cell setVisible:NO]; // <-- wouldn't it be nice if this could
be done
}
}
}
Sunil,
Have you tried [cell setTransparent : YES]?
I think that if you make the NSButtonCell both transparent and
disabled, you will get the behavior you're after. Give it a shot.
W. W. Gilpin
email@hidden
_______________________________________________
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