Spec ProtocolBrowser example
Hi all, When I run "ProtocolBrowser new openWithSpecâ and modify a method it is not accepted. Is it supposed to work (accept a new source code)? What I should do in order to accept and compile changes? Thanks, Juraj
Hello, This example does not feature method edition. Another example, MessageBrowser, features it. In ProtocolBrowser you would need to add at the end of initializePresenter this kind of code: text acceptBlock: [ :ttext :notifyer | text behavior compile: ttext classified: 'banana' notifying: notifyer ]. but the issue is that then the method is installed but the UI is not updated. so I recommend to look at MessageBrowser. 2014-06-03 22:47 GMT+02:00 Juraj Kubelka <juraj.kubelka@gmail.com>:
Hi all,
When I run "ProtocolBrowser new openWithSpecâ and modify a method it is not accepted. Is it supposed to work (accept a new source code)? What I should do in order to accept and compile changes?
Thanks, Juraj
Thank you a lot. It helped me a lot. Cheers, Juraj El 04-06-2014, a las 2:54, Clément Bera <bera.clement@gmail.com> escribió:
Hello,
This example does not feature method edition.
Another example, MessageBrowser, features it.
In ProtocolBrowser you would need to add at the end of initializePresenter this kind of code:
text acceptBlock: [ :ttext :notifyer | text behavior compile: ttext classified: 'banana' notifying: notifyer ].
but the issue is that then the method is installed but the UI is not updated. so I recommend to look at MessageBrowser.
2014-06-03 22:47 GMT+02:00 Juraj Kubelka <juraj.kubelka@gmail.com>: Hi all,
When I run "ProtocolBrowser new openWithSpecâ and modify a method it is not accepted. Is it supposed to work (accept a new source code)? What I should do in order to accept and compile changes?
Thanks, Juraj
participants (2)
-
Clément Bera -
Juraj Kubelka