Regular expression (Regex
)
Regular Expression Parsing (regexParse.json
)
T4DTrace forBlock:
[' \d|\w+' asRegex].
Regular Expression Matching (regexMatch.json
)
matcher := ' \d|\w+' asRegex.
T4DTrace forBlock:
[matcher matchesIn: ' hi, 6 times 7 equal to 42' ].
Morphic UI Framework (Morphic
)
Event Handling (mouseDown.json
)
Type self haltOnce
Select > Button for it
Inspect button > self actWhen: #buttonDown
1 setHaltOnce
Click button
Debug > Full stack > select HandMorph>>#sendMouseEvent:
Restart > Trace it
1 setHaltOnce
Over
Inspect TraceDebugger > T4DTrace forCursor: self cursor
Layouting (fullBoundsTextView.json
)
nil inspect
Halo on bottom code pane > Inspect
self fullBoundsTextView
T4DTrace forBlock: [self layoutChanged; fullBounds]
Full World Cycle (worldCycle.json
)
T4DTrace forBlock:
[Project current world doOneCycleNow].
Text Rendering (displayScanner.json
)
T4DTrace forBlock:
[' a\b' withCRs asTextMorph imageForm].
Inspection Tool Construction (inspectorResetFields.json
)
Color red inspect
Halo on inspector > Inspect model
T4DTrace forBlock: [self resetFields]
HTML Parsing (asTextFromHtml.json
)
T4DTrace forBlock:
[' <b>Hello <a href="lol">World!</a></b>' asTextFromHtml].
self clearHaltOnce.
T4DTrace forBlock:
[Compiler evaluate: ' self haltOnce' ].
Factorial (factorial2.json
)
T4DTrace forBlock:
[2 factorial].
Non-Local Return (nonLocalReturn.json
)
T4DTrace forBlock:
[' 123' detect: [:ea | ea = $2 ]].
Exception Signaling (zeroDivision.json
)
T4DTrace forBlock:
[2 / 0 ].