

While they do the job basically, we had a desire for years to get something better. New XML Plugin for Xojo For 20 years we used the built-in XML classes in Xojo. Since the conference hotel allows you to cancel, it may be good to reserve a room and later rebook it or cancel, when you find a lower rate. Or maybe you like to share a room when traveling with your colleague? You can either stay in the conference hotel ($269 USD/night) or maybe better get a cheaper hotel outside and drive daily to downtown for the conference. I bet you'll enjoy it! Be sure sure to stay the night on Tuesday, so you can enjoy the dinner and travel home a day later. Yes, instead of lots of sessions in a ballroom, Dana organized something different this time. Two days of conference follows with a special developer adventure on the second day. You may want to use the weekend to come to Nashville earlier to enjoy the city and then join the get-together on Sunday evening. Please reserve the days from 18th to 21st September in your calendar. Xojo Developer Retreat 2022, 19th and 20th September 2022. Queue_MTC is a fast queue class for Xojo.Just one month till the XDC Developer Retreat 2022 starts in Nashville: ( Dequeue is a first-in-first-out method while Pop is a last-in-first-out method.) It will work like a Variant array that references "items" instead of "rows", e.g., RemoteItemAt, and has an Enqueue method rather than AddRow and a Dequeue method in addition to Pop. In all cases, Queue_MTC was designed to be faster than using a plain array. Open the Harness project and copy Queue_MTC into your project, or drag the Queue_MTC.xojo_code file into your project. Return and remove the first item in the queue (FIFO) MethodĪ new instance as a shallow copy of the given Queue_MTC Queue_MTC will act like an ordinary Variant array, with some differences. Returns a Variant array of the current items Return the index of the given item or -1 if not found Return and remove the last item in the queue (LIFO) Individual items may be referenced like an array, e.g., q(1) = true and v = q(10). Var queue as new Queue_MTC queue.Enqueue( "hi" ) queue.Enqueue( 3 ) var s as string = queue.Dequeue // "hi" var i as integer = queue.Dequeue // 3 queue.Enqueue( 1 ) queue.Enqueue( 2 ) if queue( 0 ) = 1 then // it is end if i = queue.Dequeue // 1 if queue( 0 ) = 2 then // it is end if queue.RemoveAllItems queue.Enqueue( 0 ) queue.Enqueue( 1 ) queue.Enqueue( 2 ) queue.Enqueue( 3 ) queue.Enqueue( 4 ) call queue.Dequeue // 0 call queue.Pop // 4 queue.RemoveItemAt( 2 ) // Now 1, 2 if queue.Count = 2 then // it is end if i = queue.IndexOf( 2 ) // will be 1 var arr() as variant = queue.ToArray if arr.LastRowIndex = queue.LastItemIndex then // it does end if Behind The Scenes loop to cycle through every element of the queue.

Queue_MTC achieves its speed gains by rarely modifying its internal Variant array. It starts with an array of a known size and keeps doubling it when more space is needed. It tracks your items through internal indexes that get updated whenever items are queued or de-queued, and only periodically resizes the array during idle time to keep it from getting out of control. You can compare the speed of Queue_MTC vs. an ordinary Variant array by running the "Timing" unit tests in the Harness project. This was created by Kem Tekinay of MacTechnologies Consulting.
XOJO FOR LOOP LICENSE
See the included LICENSE file for the legal stuff.2 About the MBS Xojo AudioPlayer Kit The MBS Xojo AudioPlayer Kit provides you with a few useful classes for audio playback on OS X and ios and midi playback on OS X.
XOJO FOR LOOP CODE
The Kit contains: Wrapper for ios AudioPlayer class in AVFoundation AVAudioPlayerMB class AVErrorMB class Midi Player class to use Apple s midi synthesizer MidiPlayerMB class Sample application 2 of 14ģ AudioPlayer The AudioPlayer Kit contains a wrapper for AVAudioPlayer class: Features Play sounds loaded from memory and file Events like DidFinishPlaying Audio Channel assignment average and peak power per channel volume, pan and rate controls play, pause and stop methods query/set current position Wrapper Features For new Xojo framework Using exception handling to track error Using enums for saver constant passing Test code included All classes with MB postfix to avoid name conflicts.
XOJO FOR LOOP FULL
All module definitions are protected to avoid conflicts Inline documentation Full Source code, no encryption Works for 32bit and 64bit targets.
