Home » Developing U++ » U++ Developers corner » MVC example
Re: MVC example [message #33433 is a reply to message #33429] |
Fri, 05 August 2011 10:41 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
mirek pointed out that the ide uses a certain mechanism to i.e. have a Split view of probably the same document.
i've reviewed the stuff and it turns out that the solution here is quite simple.
ide.cpp:795
void Ide::Periodic()
{
CheckFileUpdate();
...
}
ide.win:621
SetTimeCallback(-20, THISBACK(Periodic), TIMEID_PERIODIC);
which is called every 20 ms, to ensure that the windows show the same content of a file (when saved, when not saved and typing, the second split does not get refreshed). so the model here is the saved file on disk. and it clearly does not offer notification mechanism. thus, external means trigger a refresh. nice and simple. though for realtime action-triggered MVC, this approach is not quite usable. but here again, MVC is too unspecific/komplex to find a one-size-fits-all solution.
[Updated on: Fri, 05 August 2011 10:44] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 05 11:13:16 CEST 2024
Total time taken to generate the page: 0.02580 seconds
|