This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: Settings Framework update
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Well, when I made this post I should have sent email to Vassili first. Here's the much simpler way to accomplish the same thing:
aPage
when: version valueHolder
valueSatisfies: [:v | v = #latest]
enable: level
the first argument is a value model. Whenever it changes, the block passed as the second argument runs and the module passed as the third argument is enabled or disabled depending on whether the block returns true or false.
As usual with Vassili's designs, it's simple and makes sense.