I provide a way to indicate that an object would like a file to write to.
You can use me as follows:
| file |
[file := PickAFileToWriteNotification signal.
file inspect]
on: PickAFileToWriteNotification
do: [:ex |
| newFileName stream |
newFileName := FillInTheBlankMorph request: 'Name of file to write:' translated initialAnswer: 'xxx'.
stream := FileStream fileNamed: newFileName.
stream
ifNotNil: [ex resume: stream]]
On 06 Mar 2011, at 11:29 PM, laurent laffont wrote:
Today: PickAFileToWriteNotification
Comment Of The Day Contest - One Day One Comment
Rules:
#1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s).
#2: If you cannot comment it, deprecate it.
Laurent