• 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: NSOutlineView variable width cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView variable width cell


  • Subject: Re: NSOutlineView variable width cell
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 14 Sep 2006 16:15:28 -0400


First, I'm sorry I totally didn't get what you were looking for. :-}

About your drawing error with this approach ... is it wise to return NSZeroRect if it's not the cell you want to draw? I'm thinking that might leave the affected column's cell rect dirty, which might cause drawing errors like this.

Maybe Corbin Dunn (who seems to be an NSTableView / NSOutlineView guru at Apple) can answer that solidly, but that was the first question that popped into my head when I looked at that line.

--
I.S.


On Sep 14, 2006, at 4:05 PM, Ashley Clark wrote:

- (NSRect)frameOfCellAtColumn:(NSInteger)columnIndex row:(NSInteger) rowIndex
{
NSRect cellFrame = [super frameOfCellAtColumn:columnIndex row:rowIndex];


if ([self isGroupRow:rowIndex]) {
if ([[self tableColumns] objectAtIndex:columnIndex] != [self outlineTableColumn])
return NSZeroRect;


cellFrame.size.width = [self bounds].size.width - cellFrame.origin.x;
}


    return cellFrame;
}

_______________________________________________ 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
  • Follow-Ups:
    • Re: NSOutlineView variable width cell
      • From: Ashley Clark <email@hidden>
References: 
 >NSOutlineView variable width cell (From: Ashley Clark <email@hidden>)
 >Re: NSOutlineView variable width cell (From: John Terranova <email@hidden>)
 >Re: NSOutlineView variable width cell (From: Ashley Clark <email@hidden>)

  • Prev by Date: Re: Indexed Accessors not being called...
  • Next by Date: Re: Indexed Accessors not being called...
  • Previous by thread: Re: NSOutlineView variable width cell
  • Next by thread: Re: NSOutlineView variable width cell
  • Index(es):
    • Date
    • Thread