Re: Question on NSScrollView

2014-05-04 Thread Varun Chandramohan
Hi Quincey, You are right, the code is taken from the link you posted. Actually I understand that group rows were demonstrated in that code. Actually when I remove group code I get desired result. I was trying to include group rows so that in future should I need that feature, I need not revisit t

Re: Question on NSScrollView

2014-05-02 Thread dangerwillrobinsondanger
> On 2014/05/03, at 6:06, Lee Ann Rucker wrote: > > You might find it useful to get one of the Apple sample apps, like > TableViewPlayground, and experiment with that - it's easier to figure out > what's happening when you have a fully-implemented example than it is to > start from scratch.

Re: Question on NSScrollView

2014-05-02 Thread Quincey Morris
On May 2, 2014, at 14:06 , Lee Ann Rucker wrote: > You might find it useful to get one of the Apple sample apps, like > TableViewPlayground, and experiment with that - it's easier to figure out > what's happening when you have a fully-implemented example than it is to > start from scratch. FW

Re: Question on NSScrollView

2014-05-02 Thread Lee Ann Rucker
You might find it useful to get one of the Apple sample apps, like TableViewPlayground, and experiment with that - it's easier to figure out what's happening when you have a fully-implemented example than it is to start from scratch. On Apr 29, 2014, at 7:20 PM, Varun Chandramohan wrote: > Hi

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
; Date: Friday, 2 May 2014 3:12 pm To: Development mailto:varun.chandramo...@wontok.com>> Cc: Cocoa dev mailto:Cocoa-dev@lists.apple.com>> Subject: Re: Question on NSScrollView On May 1, 2014, at 17:25 , Varun Chandramohan mailto:varun.chandramo...@wontok.com>> wrote: Yes I have im

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
quinceymor...@rivergatesoftware.com>> Date: Friday, 2 May 2014 9:10 am To: Development mailto:varun.chandramo...@wontok.com>> Cc: Cocoa dev mailto:Cocoa-dev@lists.apple.com>> Subject: Re: Question on NSScrollView On May 1, 2014, at 15:16 , Varun Chandramohan mailto:varun.chandramo...@wontok.c

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

Re: Question on NSScrollView

2014-04-29 Thread Graham Cox
On 30 Apr 2014, at 12:20 pm, Varun Chandramohan wrote: > Can someone tell me if NSScrollView can be extended to work like that? Any > suggestions? You don't want to extend or subclass NSScrollView. Instead just put a custom view inside it. You can set up drag and drop in any view - check ou

Re: Question on NSScrollView

2014-04-29 Thread Jerry Krinock
On 2014 Apr 29, at 19:20, Varun Chandramohan wrote: > In my app I have a scrollview that displays a list of file paths which is > populated by NSArrayController. Understand that what you actually have there is, I presume, a ** NSTableView ** inside of an NSScrollView. Researching how to imp

Question on NSScrollView

2014-04-29 Thread Varun Chandramohan
Hi Guys, In my app I have a scrollview that displays a list of file paths which is populated by NSArrayController. This work well, except that I wanted to add some fancy functionality to it. I have seen some apps allow dragging a file from Finder into scroll view to add it. This is a neat funct