How can I do this MVP model view presenter
Trying to implement this design pattern but need some help,
my view class extends Application and has a start method inside it how can I access this and launch the view through my main class ?
19 Replies
⌛
This post has been reserved for your question.
Hey @userexit! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
I have more classes wym
this is my view:
this is my ViewController:
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
dont understadn this
give an example lps
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
i know what mvc is
only difference between mvp and mvc is observer pattern
in mvp presenter observers model and updates view
in mvc view observes model and updates itself
its kinda just to remove completely the logic from the view
in mvp
and in mvc view has some logic for displaying etc
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
I would do something like this
sec
im completing
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
yeah im adding that rn
ah not the interface
i was adding to the model methods
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
why wopuld they not be hot swappable by simply adding the methods and attributes instead of completely new interfaces ?
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
ah I see
yeah I see now
ty
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
I could yeah
I will do so after eating
im kinda hungry
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
Post Closed
This post has been closed by <@1200560437331239014>.