[Cuis] Unknown File Dialogue

Juan Vuletich juan at jvuletich.org
Fri Dec 4 07:13:39 CST 2015


On 12/3/2015 11:59 PM, Dan Norton wrote:
> When someone explicitly selects "cancel" in a dialog, is MNU an appropriate response? I
> don't think so. Any other opinions?

I don't think that answering nil is a good idea. If you don't handle the 
nil answer appropriately, you'll only see a debugger later. If you are 
handling it, instead of checking for nil, write an exception handler...

Cheers,
Juan Vuletich

> On 6 Nov 2015 at 16:21, cuis at jvuletich.org wrote:
>
>> Hello,
>>
>> In FmFileEntry>>fileContents, a dialogue is presented if there is an
>> attempt to read a file
>> which does not exist. This gives the opportunity to choose another
>> name or cancel.
>>
>> A "Cancel" response produces MNU: #contents
>>
>> To avoid the MNU and answer nil, I suggest the attached change be
>> made to #fileContents.
>>
>>   - Dan
>>
>> Attachments:
>>
>> C:\Cuis\JuanV\Cuis-Smalltalk-Dev-master\FmFileEntry-fileContents.zip
>
>
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>





More information about the Cuis mailing list