SetPresenter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SetPresenter

Howard Oh
Hi,

ListPresenter can display a Set, but it can't add or remove objects, since
ListModel adds or removes only by index of the subject collection.

Yesterday, I made SetPresenter, which is has a listPresenter as its
instance variable. All user reaction is first handled by the listPresenter,
but the messages are also sent to itself to update the model(a Set) accordingly.

Have a good one
Hwa Jong Oh