7.9.1 File dialog behaviour differs from OSX to Win7

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

7.9.1 File dialog behaviour differs from OSX to Win7

Maarten Mostert-2

Hi,

 

The next snipet will create a new file with the preferred extension on OSX (even without specifying the extension).

 

On Windows it just writes the file without the extension ??

 

Is their an explanation ?

 

Regards,

 

@+Maarten,

 

 

| fileDialog |

fileDialog := SaveFileDialog new.

fileDialog

addFileFilter: 'StakePoint' pattern: '*.stpp';

addFilterForAllFiles;

fileCondition: #new;

defaultFilename: '*.stpp'.

SaveFileDialog lastDirectory isNil

ifFalse: [fileDialog defaultDirectory: SaveFileDialog lastDirectory asString].

^fileDialog select


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc