• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making NSCell invisible in an NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Making NSCell invisible in an NSOutlineView (From: Sunil Vemuri <email@hidden>)

  • Prev by Date: Problem: getting a DO's run loop to run while app is idle [repost]
  • Next by Date: Re: Application Icon Blues
  • Previous by thread: Making NSCell invisible in an NSOutlineView
  • Next by thread: Re: Making NSCell invisible in an NSOutlineView
  • Index(es):
    • Date
    • Thread