Mercurial > projects > dwt-mac
diff dwt/widgets/FileDialog.d @ 7:e831403a80a9
Add 'cast' to casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:30:35 +0200 |
parents | 1a8b3cb347e0 |
children | d8635bb48c7c |
line wrap: on
line diff
--- a/dwt/widgets/FileDialog.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/widgets/FileDialog.d Wed Aug 27 14:30:35 2008 +0200 @@ -212,7 +212,7 @@ filename.getCharacters_(buffer); fullPath = new String(buffer); if ((style & DWT.SAVE) is 0) { - NSArray filenames = ((NSOpenPanel)panel).filenames(); + NSArray filenames = (cast(NSOpenPanel)panel).filenames(); int count = filenames.count(); fileNames = new String[count]; for (int i = 0; i < count; i++) { @@ -327,7 +327,7 @@ * @since 3.4 */ public void setOverwrite (bool overwrite) { - //TODO: May be able to implement this with private NSSavePanel method (BOOL)_overwriteExistingFileCheck:(NSString *)filename + //TODO: May be able to implement this with private NSSavePanel method cast(BOOL)_overwriteExistingFileCheck:(NSString *)filename /* See bug 223703 */ //this.overwrite = overwrite; }