Re: [MacRuby-devel] Source List: NSOutlineView in a NSScrollView

2011-12-15 Thread François Boone
Hi, Thank you for reply. I didn't want to use PXSourceList . I understand it is easier and faster to use something already done. But I would like to understand what I do. And I would like to use ruby … The two first points give me some hint to understand in depth how NSOutlineView and NSButto

Re: [MacRuby-devel] Source List: NSOutlineView in a NSScrollView

2011-12-12 Thread Watson
Hi, 1) NSOutlineViewDelegate Protocol provides you its method. Please refer to: http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSOutlineViewDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/NSOutlineViewDelegate 2) If you use NSButton, its size might change li

Re: [MacRuby-devel] Source List: NSOutlineView in a NSScrollView

2011-12-12 Thread François Boone
Hi, Thank-you very much Watson for your SourceListViewBased example. As usual, I have few questions: 1) Where did you find "isGroupItem:item" for OutlineView? I search in NSOutlineView Class Reference but I didn't find it! 2) I start from your example and I add a column to show a badge for each c

Re: [MacRuby-devel] Source List: NSOutlineView in a NSScrollView

2011-12-09 Thread Watson
Hi, If you want to display images in NSOutlineView, I think you would use the NSOutlineView as View-Based. You might use the outlineView:viewForTableColumn:item instead of outlineView:objectValueForTableColumn:byItem. Look at my sample, you would think it isn't difficult :) - https://github.com/W

[MacRuby-devel] Source List: NSOutlineView in a NSScrollView

2011-12-08 Thread François Boone
Hi, With help of Matt and Watson, I have made a tree using Outline View object and it works fine. Now I would like to go one step further. I would like to use the Source List object available in Object Library. This Source List looks like Outline View with TableColumn Object. In this Table Ob