A FogBugz case was edited by Sean DeNigris.
Case ID: 6489
Title: Spec-ify DropListModel / TextModel
Status: Work Needed
Category: Enhancement
Project: Spec
Area: Misc
Priority: 6 - Fix If Time
Milestone: Later
Assigned To: Everyone
URL:
https://pharo.fogbugz.com/default.asp?6489Slice incoming... It's a little ugly because I wanted to preserve the old raw-string behavior for now.
Instead of:
colorItems := #('Green' 'Red' 'Yellow') collect: [ :e | DropListItem named: e do: [] ].
colorModel
items: colorItems.
And then matching the strings that come back (yuck)...
You can now say:
colorModel
items: { Color green. Color red. Color yellow };
displayBlock: [ :e | e name capitalized ].
And then:
colorModel whenSelectedItemChangedDo: [ :color | Transcript show: color brightness ].
You are subscribed to this case. If you do not want to receive automatic notifications in the future, unsubscribe (
https://pharo.fogbugz.com/default.asp?pre=preUnsubscribe&pg=pgEditBug&command=view&ixBug=6489) from this case.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker