[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unwind-protect&choose-file-dia



I'm having trouble getting the choose-file-dialog to work correctly when
cancelled - Here is a sample:
 
(progn (setf aFileName "Unnamed")
           (setf aFileName (unwind-protect
                             (choose-file-dialog :mac-file-type :|TEXT|)
                             "cancelled"))
           aFileName)
 
When the SFGetFile appears, if I hit escape or cancel, the dialog unwinds past
my unwind protect, and I never get aFileName set to "cancelled".
 
 
Any ideas?