OpenDialogMBS used to Save?

  1. 9 months ago

    Jeff T

    15 Dec 2018 Pre-Release Testers Midlands of England, Europe

    Im using OpenDialogMBS but also want to Save files.
    There is no SaveDialogMBS that I can find, but a Save dialog usually has built-in OS level checks about 'do you want to overwrite' and the like.
    Is there a ready-rolled SaveDialogMBS equivalent, or a property I can set on the OpenDialogMBS class?

  2. For that I used NSSAVEPANELMBS

    https://www.monkeybreadsoftware.net/class-nssavepanelmbs.shtml

  3. Christian S

    15 Dec 2018 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    Doesn't Xojo have built-in classes, too?

    SaveAsDialog is built-in.
    NSSavePanelMBS is for Mac only and provides more features.

  4. Jeff T

    15 Dec 2018 Pre-Release Testers Midlands of England, Europe

    Doesn't Xojo have built-in classes, too?

    Yes.
    But the OpenDialog class let me down badly recently and I was able to use OpenDialogMBS to work around the filetypes problem.
    I wanted to be consistent.

  5. 7 months ago

    John M

    26 Feb 2019 Pre-Release Testers, Xojo Pro New York / New Jersey

    Unfortunately, the built-in SaveAsDialog fails in 64 bit on Mojave. I just discovered this and filed a Feedback report, case 54984. I'll try NSSavePanelMBS and see how it goes.

  6. Tim P

    26 Feb 2019 Pre-Release Testers Rochester, NY

    54984 must be private, it's not showing up here. Can you share what you mean by the SaveAsDialog fails?

  7. John M

    26 Feb 2019 Pre-Release Testers, Xojo Pro New York / New Jersey
    Edited 7 months ago

    Sorry, I accidentally made it private. SaveAsDialog crashes Lightwright 6, on a small test app it just does nothing - it doesn't appear at all.

  8. John M

    27 Feb 2019 Pre-Release Testers, Xojo Pro New York / New Jersey
    Edited 7 months ago

    The Feedback report is public now, give case 54984 a try. Xojo's SaveAs dialog fails to appear on Mojave when I build in 64 bit.

  9. Jeff T

    27 Feb 2019 Pre-Release Testers Midlands of England, Europe

    Unfortunately, the built-in SaveAsDialog fails in 64 bit on Mojave

    Which version of Xojo, which version of Mojave?
    Works fine for me apart from the filtering...
    I'm using Xojo 2017 and OSX 10.14.2, about to start testing Xojo 2018

  10. John M

    27 Feb 2019 Pre-Release Testers, Xojo Pro New York / New Jersey

    Xojo 2018R4 and Mojave 10.14.3, the project is built as 64 bit (32 bit is OK). In my big app (Lightwright), it crashes. In a small test app, the dialog fails to appear, it's as if you didn't call the dialog at all.

  11. Jeff T

    27 Feb 2019 Pre-Release Testers Midlands of England, Europe

    In a small test app, the dialog fails to appear, it's as if you didn't call the dialog at all.

    Is it being wrapped for the App Store by AppWrapper but lacking permissions?

    I call it with .showmodalwithin(self) if it makes any difference.

  12. John M

    27 Feb 2019 Pre-Release Testers, Xojo Pro New York / New Jersey
    Edited 7 months ago

    @Jeff T Is it being wrapped for the App Store by AppWrapper but lacking permissions?

    No, I'm running it on my test laptop using Run Remotely from my main MBP.

    I just tried, using ShowModalWithin doesn't make it work.

  13. Jeff T

    27 Feb 2019 Pre-Release Testers Midlands of England, Europe

    And do you have an older Xojo to try it on?

  14. Jeff T

    28 Feb 2019 Pre-Release Testers Midlands of England, Europe

    Working with 64bit build Xojo 2018R3 for me

or Sign Up to reply!