Re: Question on NSScrollView

2014-05-01 Thread Quincey Morris
On May 1, 2014, at 23:03 , Varun Chandramohan wrote: > I ran ‘tableView:viewForTableColumn and it is always tableColumn == nil as I > have just 1 column. No. ‘tableColumn == nil’ means that you’re being asked for a view for a *group row*. A group row: (a) spans all columns (though there’s ju

Re: Question on NSScrollView

2014-05-01 Thread Varun Chandramohan
I ran 'tableView:viewForTableColumn and it is always tableColumn == nil as I have just 1 column. I noticed that I never hit anything that is not "GroupCell". However this does not solve the grey background right? Also I tried [ltableView setSelectionHighlightStyle: NSTableViewSelectionHighligh

Re: Question on NSScrollView

2014-05-01 Thread Quincey Morris
On May 1, 2014, at 17:25 , Varun Chandramohan wrote: > Yes I have implemented tableView:isGroupRow. > - (BOOL)tableView:(NSTableView *)tableView isGroupRow:(NSInteger)row { > DesktopEntity *entity = _tableContents[row]; > if ([entity isKindOfClass:[DesktopFolderEntity class]]) { >

Re: Question on NSScrollView

2014-05-01 Thread Varun Chandramohan
Hi Quincey, Yes I have implemented tableView:isGroupRow. - (BOOL)tableView:(NSTableView *)tableView isGroupRow:(NSInteger)row { DesktopEntity *entity = _tableContents[row]; if ([entity isKindOfClass:[DesktopFolderEntity class]]) { return YES; } return NO; } What is

Re: Question on NSScrollView

2014-05-01 Thread Quincey Morris
On May 1, 2014, at 15:16 , Varun Chandramohan wrote: > However this is not the case with the same table > populated manually using NSPasteboardReading and NSTableViewDataSource, > NSTableViewDelegate. I noticed a grey background to all the entries to the > table. It looks like you have inadvert

Re: Question on NSScrollView

2014-05-01 Thread Varun Chandramohan
Thanks a lot. I did implement it and everything seems to be working fine. Although I did see one major issue. When I used arrayController on the same table I used get my entries in white background and when clicked on gets highlighted in blue. However this is not the case with the same table popula