Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread stepharo
On Tue, 29 Nov 2016 10:46:09 +0100, Aliaksei Syrel wrote: Called by the table view to return the data object associated with the specified row and column. https://developer.apple.com/reference/appkit/nstableviewdatasource/1533674-tableview If dataSource does not

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread stepharo
On Tue, 29 Nov 2016 09:58:41 +0100, Aliaksei Syrel wrote: "DataSource" is responsible for providing visual elements that represent items in a data set. who said that. I could say exactly: DataSource is responsible to cut data so that they are delivered by row or

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread stepharo
No, because is not *just* a cell provider.TableDataSource, TableStore, TableProvider, yes. I kind of like “TableStore”.Also we have other stores in image: FileSystem stores… which conceptually do more or less the same… so better to unify concepts/>names… what do you think?

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread stepharo
- Then I miss an important design point. Why datasource returns Morph? I do not get get why a data source should return UI element. To me it violates layers. no, because that’s its purpose: to provide the table with the cell elements (which are by definition Morphs… any kind of

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread stepharo
On Mon, 28 Nov 2016 22:29:08 +0100, Esteban Lorenzano wrote: Hi, On 28 Nov 2016, at 21:32, stepharo wrote: Hi - Could we rename FastTable into Table? not for Pharo 6 but Pharo 7 yes… in fact, I think it should be called TableMorph. (Also we

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread stepharo
Ok so I never understand it that way. What a bad name. Stef On 28 Nov 2016, at 22:25, Henrik Nergaard wrote: The datasource is a wrapper/binding between the real object and the view (table/list) and provides the necessary stuff for >>display and interaction

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Ben Coman
On Tue, Nov 29, 2016 at 3:45 PM, Esteban Lorenzano wrote: > > On 29 Nov 2016, at 00:00, Ben Coman wrote: > > > > On Tue, Nov 29, 2016 at 5:29 AM, Esteban Lorenzano > wrote: >> >> Hi, >> >> On 28 Nov 2016, at 21:32, stepharo

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Thierry Goubier
2016-11-29 11:07 GMT+01:00 Esteban Lorenzano : > > On 29 Nov 2016, at 10:36, Thierry Goubier > wrote: > > > > 2016-11-29 10:14 GMT+01:00 Esteban Lorenzano : > >> >> On 29 Nov 2016, at 09:58, Aliaksei Syrel

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Esteban Lorenzano
> On 29 Nov 2016, at 10:36, Thierry Goubier wrote: > > > > 2016-11-29 10:14 GMT+01:00 Esteban Lorenzano >: > >> On 29 Nov 2016, at 09:58, Aliaksei Syrel > >

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Aliaksei Syrel
> > Called by the table view to return the data object associated with the > specified row and column. https://developer.apple.com/reference/appkit/nstableviewdatasource/1533674-tableview Cheers, Alex On 29 November 2016 at 10:44, Aliaksei Syrel wrote: > > On 29 November

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Aliaksei Syrel
On 29 November 2016 at 10:39, Esteban Lorenzano wrote: > not true. > it returns an NSView. > Could you name a method (send a link to a documentation) that is implemented by DataSource and returns an NSView? According to documentation NSView for an item at row/column index

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Esteban Lorenzano
> On 29 Nov 2016, at 10:37, Aliaksei Syrel wrote: > > > On 29 November 2016 at 10:14, Esteban Lorenzano > wrote: > And DataSource is another stuff in Cocoa, from where I borrowed the design: >

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Aliaksei Syrel
On 29 November 2016 at 10:14, Esteban Lorenzano wrote: > And DataSource is another stuff in Cocoa, from where I borrowed the > design: https://developer.apple.com/reference/appkit/nstableviewdatasource > > I know :) However, implementation of FastTable does not correspond

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Thierry Goubier
2016-11-29 10:14 GMT+01:00 Esteban Lorenzano : > > On 29 Nov 2016, at 09:58, Aliaksei Syrel wrote: > > "DataSource" is responsible for providing visual elements that represent > items in a data set. > > I don't see how word "Store" fits here, because

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Esteban Lorenzano
> On 29 Nov 2016, at 09:58, Aliaksei Syrel wrote: > > "DataSource" is responsible for providing visual elements that represent > items in a data set. > > I don't see how word "Store" fits here, because DataSource does not store > anything. DataSource is also not the

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Aliaksei Syrel
Sorry not souse, but a source :D On 29 November 2016 at 09:58, Aliaksei Syrel wrote: > "DataSource" is responsible for providing visual elements that represent > items in a data set. > > I don't see how word "Store" fits here, because DataSource does not store > anything.

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Aliaksei Syrel
"DataSource" is responsible for providing visual elements that represent items in a data set. I don't see how word "Store" fits here, because DataSource does not store anything. DataSource is also not the best name since it is not a data source itself. An object that is now called DataSource,

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Denis Kudriashov
2016-11-29 9:35 GMT+01:00 Esteban Lorenzano : > yes, something like TableCellSource or TableCellProvider is more intention > revealing. > > > No, because is not *just* a cell provider. > TableDataSource, TableStore, TableProvider, yes. > > I kind of like “TableStore”. And

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Esteban Lorenzano
> On 29 Nov 2016, at 09:11, Christophe Demarey > wrote: > > Hi, > >> Le 29 nov. 2016 à 08:45, Esteban Lorenzano > > a écrit : >> >>> >>> On 29 Nov 2016, at 00:00, Ben Coman >>

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread p...@highoctane.be
Even if not really matching 100%, Java has the TableModel. https://docs.oracle.com/javase/7/docs/api/javax/swing/table/TableModel.html https://docs.oracle.com/javase/7/docs/api/javax/swing/table/DefaultTableModel.html In the MVVM buzzword land, ViewModel seems all the rage. Some inspiration

Re: [Pharo-dev] two question about fasttable

2016-11-29 Thread Christophe Demarey
Hi, > Le 29 nov. 2016 à 08:45, Esteban Lorenzano a écrit : > >> >> On 29 Nov 2016, at 00:00, Ben Coman > > wrote: >> >> >> >> On Tue, Nov 29, 2016 at 5:29 AM, Esteban Lorenzano >

Re: [Pharo-dev] two question about fasttable

2016-11-28 Thread Esteban Lorenzano
> On 29 Nov 2016, at 00:00, Ben Coman wrote: > > > > On Tue, Nov 29, 2016 at 5:29 AM, Esteban Lorenzano > wrote: > Hi, > >> On 28 Nov 2016, at 21:32, stepharo > > wrote: >>

Re: [Pharo-dev] two question about fasttable

2016-11-28 Thread Ben Coman
On Tue, Nov 29, 2016 at 5:29 AM, Esteban Lorenzano wrote: > Hi, > > On 28 Nov 2016, at 21:32, stepharo wrote: > > Hi > > - Could we rename FastTable into Table? > > > not for Pharo 6 but Pharo 7 yes… in fact, I think it should be called > TableMorph. >

Re: [Pharo-dev] two question about fasttable

2016-11-28 Thread Esteban Lorenzano
> On 28 Nov 2016, at 22:25, Henrik Nergaard wrote: > > The datasource is a wrapper/binding between the real object and the view > (table/list) and provides the necessary stuff for display and interaction > between them. Returning custom UI elements (cells and rows)

Re: [Pharo-dev] two question about fasttable

2016-11-28 Thread Esteban Lorenzano
Hi, > On 28 Nov 2016, at 21:32, stepharo wrote: > > Hi > > - Could we rename FastTable into Table? not for Pharo 6 but Pharo 7 yes… in fact, I think it should be called TableMorph. (Also we need to refactor a lot, to eliminate the FT prefix, etc.) > > - Then I miss an

Re: [Pharo-dev] two question about fasttable

2016-11-28 Thread Henrik Nergaard
[mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of stepharo Sent: Monday, November 28, 2016 9:32 PM To: pharo-dev@lists.pharo.org Subject: [Pharo-dev] two question about fasttable Hi - Could we rename FastTable into Table? - Then I miss an important design point. Why datasource returns Morph? I do

[Pharo-dev] two question about fasttable

2016-11-28 Thread stepharo
Hi - Could we rename FastTable into Table? - Then I miss an important design point. Why datasource returns Morph? I do not get get why a data source should return UI element. To me it violates layers. Stef -- Using Opera's mail client: http://www.opera.com/mail/