And NewListExample new withNewList; openInWindow. does not work. separatorAfter: item at: index ^ separatorSelector ifNotNil: [ self model perform: separatorSelector with: item with: index ] separatorSelector is a valueHolder and not a symbol but I do not get it because separatorSelector ^ separatorSelector contents separatorSelector: anObject separatorSelector contents: anObject really looks like a valueHolder. Stef
On Oct 6, 2013, at 8:16 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
And
NewListExample new withNewList; openInWindow.
does not work.
separatorAfter: item at: index
^ separatorSelector ifNotNil: [ self model perform: separatorSelector with: item with: index ]
Should probably be ifNotNil: [ self model perform: self separatorSelector with: item with: index ]
separatorSelector is a valueHolder and not a symbol
but I do not get it because
separatorSelector ^ separatorSelector contents
separatorSelector: anObject separatorSelector contents: anObject
really looks like a valueHolder.
Stef
It is a value holder for sure :) I will have a look tomorrow to make the example works :) Ben
On Oct 6, 2013, at 10:28 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote:
On Oct 6, 2013, at 8:16 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
And
NewListExample new withNewList; openInWindow.
does not work.
separatorAfter: item at: index
^ separatorSelector ifNotNil: [ self model perform: separatorSelector with: item with: index ]
Should probably be
ifNotNil: [ self model perform: self separatorSelector with: item with: index ]
separatorSelector is a valueHolder and not a symbol
but I do not get it because
separatorSelector ^ separatorSelector contents
separatorSelector: anObject separatorSelector contents: anObject
really looks like a valueHolder.
Stef
It is a value holder for sure :)
I will have a look tomorrow to make the example works :)
:) cool
Ben
participants (2)
-
Benjamin -
Stéphane Ducasse