In this article I want to introduce you the new functionalities from the MBS Xojo Plugins in version 22.4.
In our new release we have an innovation for the users of XML. You get with the new release the possibility not only to use the on-board functionalities to XML of XOJO, but can use from now on also the functionalities from the new MBS Xojo XML Plugin. We provide you for the moment 30 different classes to help you work with XML. For example, you can validate XML texts. You will be able to compare XML texts and even single nodes. With a good performance you can write, read and change data. Of course, this plugin offers a lot more than that, so feel free to try it out.
In the last release we introduced you to the new functionalities of MongoDB. In this release we have expanded them a bit more. The Rename method from the class MongoCollectionMBS is one that some of you may have been waiting for, because you can rename an existing collection and database. With the InsertMany methods from the MongoCollectionMBS class we can add multiple documents to a collection at the same time. To do this, we specify a JSON array or an Array with JSON objects, with the information, in the parameters. Result sets in a search over a MongoDB database can be stepped through with a cursor. We also have some new methods for the cursor. The methode ErrorDocument from the MongoCursorMBS class checks if an error occurred while integrating the cursor. If an error occurred server-side, the ReplyJSON is set to the server’s reply document with information about the error. The FindIndexes methode from the MongoCollectionMBS class fetches a cursor containing documents, each corresponding to an index on this collection. Some MongoDB commands return a cursor document. With the method NewCursorFromCommandReply from the MongoClientMBS class you create a cursor object from the response of such a command.
We also have some new properties for the CURLMBS, CURLNMBS and CURLSMBS classes. The optionMaxLifeTimeConnection property can determine how long a CURL connection can be reused. Here we start measuring from the creation of the connection. This is specified in the parameters in seconds. If we set the value to 0, then the connection cannot be reused. Also with the new OptionServerResponseTimeout property, a duration in seconds is specified.
You determine the amount of time that the server is allowed to take in order to send a response message for a command before the session is considered dead. With the Property OptionMimeOptions we set the MIME flags. In the property OptionProtocolsString we can set a list of protocols can that are allowed to used for a connection. We have the following protocols to choose from: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTMPE, RTMPS, RTMPT, RTMPTE, RTMPTS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP. Several protocols can be allowed. To do this, specify a comma-separated list of these protocols. If you want to allow all protocols listed here, just use ALL.
The OptionReditProtocolsString property can also be passed such a list in the parameters. However, the protocol types for which a redirect should be possible are passed here. Also the property OptionSSHHostPublicKeySHA256 is new. It sets the public key of a SSH connection with a SHA256 hash.
We also have a new property from the SerialPortMBS class that was added in the last release. The WinRTSControl Property gives you direct access to the RTS (request-to-send) control setting on Windows. And this is set to either disabled or handshake by the RTS property.
With the method SetRenderingIntent from the DynaPDFMBS class we can define how our application should interpret colors in an image.
For the DesktopScintillaControlMBS and ScintillaControlMBS classes, we have a new event and a new property for each. The event Prepare fires before we create the control, so you can change properties like the new property HasBorder. As the name suggests, in the new property HasBorder we can specify whether the window should have a border. If this flag is set before the control is constructed, you get the control instated on Windows with a border line.
New functionalities for Mac and iOS
The MBS Xojo Plugins in version 22.4 offer some more new features for Mac and iOS users
In the NSFontMBS class we have the new methods monospacedDigitSystemFontOfSize and monospacedSystemFontOfSize. These two methods return a monospace version of the system font for numbers or characters. In the parameters we can set the font size and weight.
The class NSPopoverMBS has got two new events. The event popoverDidDetach indicates that a popover has been released while it's in an implicitly detached state. The new event popoverShouldDetach returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window.
We hope you will also find some interesting new features. We wish you a lot of fun with MBS Xojo Plugins version 22.4. If you have any Ideas for new cool features, need a license or have any questions, please contact us.