Rhino 6 OSX bug? - Rhino.UI.OpenFileDialog multi-selection

Under OSX when I use
var dialog = new Rhino.UI.OpenFileDialog
with
dialog.MultiSelect = true;

it does only single selection. Under Windows it allows the selection of more files.

Márton

Hi @marton.parlagh,

Use Eto:

protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{
  var fd = new Eto.Forms.OpenFileDialog
  {
    MultiSelect = true,
    Title = "Select Multiple"
  };

  var rhino_file_filter = new Eto.Forms.FileFilter("Rhino 3D Models", ".3dm");
  fd.Filters.Add(rhino_file_filter);

  var result = fd.ShowDialog(Rhino.UI.RhinoEtoApp.MainWindow);
  if (result != Eto.Forms.DialogResult.Ok)
    return Result.Cancel;

  foreach (var filename in fd.Filenames)
    RhinoApp.WriteLine(filename);

  return Result.Success;
}

– Dale

Thanks, it really works under OSX too:)

Márton

A post was split to a new topic: Using Eto OpenFileDialog