Re: Setting intercell spacing in NSBrowser

2008-05-06 Thread Martin Redington
Thanks Corbin, this over-ride seems to work. Surely this shouldn't be that obscure though ... - (void) addColumn { [super addColumn]; int lastColumnIndex = [self lastColumn]; NSMatrix *matrix = [self matrixInColumn:lastColumnIndex]; NSSize intercellSpacing = NSMakeSize(0, 1);

Re: Setting intercell spacing in NSBrowser

2008-05-06 Thread Corbin Dunn
On May 6, 2008, at 8:07 AM, Jens Alfke wrote: On 5 May '08, at 11:31 PM, Martin Redington wrote: I tried subclassing NSMatrix, and over-riding -[NSMatrix initWithFrame: mode:prototype:numberOfRows:numberOfColumns:] to set the intercellSpacing. I can see it getting called, but I don't get

Re: Setting intercell spacing in NSBrowser

2008-05-06 Thread Jens Alfke
On 5 May '08, at 11:31 PM, Martin Redington wrote: I tried subclassing NSMatrix, and over-riding -[NSMatrix initWithFrame: mode:prototype:numberOfRows:numberOfColumns:] to set the intercellSpacing. I can see it getting called, but I don't get any gaps between rows, and when I browse the NS

Setting intercell spacing in NSBrowser

2008-05-05 Thread Martin Redington
Where is the appropriate place to set the intercellSpacing on the (NSMatrices of) an NSBrowser? I would like my browser to show the gap in between multiple selected rows that you see in the Finder et al. I tried subclassing NSMatrix, and over-riding -[NSMatrix initWithFrame: mode:prototype:numbe

Setting intercell spacing in NSBrowser

2008-05-05 Thread Martin Redington
Where is the appropriate place to set the intercellSpacing on the (NSMatrices of) an NSBrowser? I would like my browser to show the gap in between multiple selected rows that you see in the Finder et al. I tried subclassing NSMatrix, and over-riding -[NSMatrix initWithFrame: mode:prototype:numbe