app.FrontmostMBS not working with DesktopApplication


With the new DesktopApplication class, I’m finding “FrontmostMBS” won’t autocomplete nor compile. Oddly, I’ve not seen that being reported.

What’s the replacement?

I can’t confirm this.
In Xojo 2021r3.1 and current 22.0pr6 plugins, the FrontMostMBS property auto completes in a new project:

I have the same Xojo version, but the MBS plugins are earlier. Here’s what I’m getting:

Do you know whether that plugin version didn’t support DesktopApplication?

Well, documentation shows it was added in 21.5.

1 Like

Thank you. I’ll update as soon as possible.

In the meantime, I’ve found an “equivalent” call: NSApplicationMBS.sharedApplication.activateIgnoringOtherApps(True)

P.S.: I’ve sometimes troubles with the MBS documentation, hence the fact I’ve not seen this information.

1 Like
Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.