MBS Plugins 16.5 pre-releases

Hello,

in this thread I want to post to you what’s new in 16.5 prerelease plugins.

download here:
https://www.monkeybreadsoftware.de/xojo/download/plugin/Prerelease/

or ask (in private message or email) to be added to the shared dropbox folder.

If you like our plugin, bookmark, like or forward this thread.
If not, well you can ignore it.

Thanks for supporting our plugin.

PS: for questions maybe post your question as a new discussion?

Greetings
Christian

16.5pr1:

  • Updated to DynaPDF 4.0.3.10
  • Added JavaObjectMBS.ClassName property.
  • When looking for Java installation on Windows, we now use unicode paths.
  • Fixed a problem with QuickTime plugin not loading on macOS Sierra.
  • Updated OpenSSL to 1.0.2j

16.5pr2:

  • Fixed events for IKImageBrowserViewControlMBS class.
  • Added CUPSMBS.PrintData function.
  • Fixed a possible issue with CalendarItems being released while script runs.
  • Added CustomNSViewMBS isFlipped event.
  • Added MimeEmailMBS.DecodeInline function.
  • Updated libXL library to version 3.7.0.
  • Updated SQLAPI++ 4.1.10.

16.5pr3:

  • Fixed a regression on SQL prepared statement with error: “dictionary is nil”.
  • Optimized NSViewMBS/NSWindowMBS getters, so they return the same view/window object if possible.
  • Added tabbing related functions/properties/constants to NSWindowMBS class.
  • Rewrote StyledText.RTFDataMBS to read/write RTF.
  • Updated SQLite to 3.15.0.
  • Added ConvertStyledText, WriteStyledText and WriteStyledTextEx functions to DynaPDFMBS.
  • Added drag & drop delegate methods to NSWindowDelegateMBS class.
  • Fixed an issue with QuartzCode plugin part where NSException handling plugin part was not correctly referenced.
  • Added MacFileOperationStatusMBS.Handle property.
  • Improved DNSServiceAddrInfoMBS for IPv6.

16.5pr4:

  • Fixed an issue with CURL wildcard mode not finding files sometimes.
  • Fixed a problem in barcode creation.
  • Fixed a possible crash in WindowsClipboardMBS.GetData.
  • Added NSApplicationMBS.showHelp.
  • Updated to DynaPDF 4.0.3.11
  • Changed JavaVMMBS Constructor to use existing JavaVM if initialized before.
  • Fixed bug with printing for DynaPDF. Please adapt newer example code.

16.5pr5:

  • Updated to DynaPDF 4.0.3.12
  • Added touchbar classes: NSColorPickerTouchBarItemMBS, NSCustomTouchBarItemMBS, NSGroupTouchBarItemMBS, NSPopoverTouchBarItemMBS, NSSliderTouchBarItemMBS, NSTouchBarItemMBS and NSTouchBarMBS.
  • Added newer methods to NSImageMBS, NSColorMBS and NSButtonMBS.
  • Updated plugins for future Xojo version.
  • Added CalCalendarStoreMBS.eventsMT method.

16.5pr6:

  • Added AVAssetMBS.readTimeCodes function.
  • Added Bold and Italic properties to NSTextViewMBS class.
  • Added GotFocus/LostFocus events for NSTextViewControlMBS and other Cocoa based controls.
  • Added NSTextMBS.Enabled property.

16.5pr7:

  • Updated CURL library to version 7.51.0.
  • Updated libSSH2 library to version 1.8.
  • Updated DynaPDF to 4.0.4.13.
  • Added DynaPDFXFAStreamMBS class.
  • Changed SignalMBS class. When we get an event/flag, we unregister our handler to avoid endless signals.
  • Updated PortAudio to latest version (from 30th October 2016).
  • Added new barcode types: DotCode and HanXin.
  • Updated zint library to version 2.5.
  • Added more methods/properties/events to WKWebViewControlMBS control.
  • Fixed compilation for console/web. NSTouchBarMBS had a reference to window class which was not marked as non-console safe.(beta bug)
  • Added NSFileManagerMBS.destinationOfSymbolicLinkAtPath functions.

I don’t have my new MBP yet, but using the Touché app, the MBS touchbar class does not work. Nothing is shown in the Touchbar (of Touché).
Touché does work for all apps that do have support for it (and I live it).

Did you try 64-bit app?

Yes I did.

Here is the crash report of your own example (part of it).

Process: Mein Programm [973]
Path: /Users/USER/Desktop/*/Mein Programm.app/Contents/MacOS/Mein Programm
Identifier: touchbar.test
Version: ??? (1.0.0.0.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Mein Programm [973]
User ID: 502

Date/Time: 2016-11-20 18:09:04.211 +0100
OS Version: Mac OS X 10.12.1 (16B2657)
Report Version: 12
Anonymous UUID: DE211587-E425-5BC2-4643-05615351EDDD

Sleep/Wake UUID: 93BA6248-30FB-429B-99F6-EFABD63AAB62

Time Awake Since Boot: 4000 seconds
Time Since Wake: 2300 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00004c19a8a8bec0
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

VM Regions Near 0x4c19a8a8bec0:
__LINKEDIT 000000011270d000-0000000112723000 [ 88K] r–/rwx SM=COW /usr/lib/dyld
–>
MALLOC_NANO 0000600000000000-0000600000400000 [ 4096K] rw-/rwx SM=PRV

Application Specific Information:
objc_msgSend() selector name: removeObserver:forKeyPath:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fffd0d15b5d objc_msgSend + 29
1 MBS_TouchBar_Plugin_19182.dylib 0x000000010ca13368 -[MyNSTouchBarDelegateMBS clearTarget] + 56
2 MBS_TouchBar_Plugin_19182.dylib 0x000000010ca117b1 NSTouchBarDestructor(REALobjectStruct*) + 129
3 touchbar.test 0x000000010a699446 NSTouchBarMBS.__exit%%o + 54
4 com.xojo.XojoFramework 0x000000010ab1d9ec RuntimeUnlockObject + 792
5 touchbar.test 0x000000010a6aa541 App.BuildAppTouchBar%%o + 2289
6 touchbar.test 0x000000010a6a9b8b App.Event_Open%%o + 155
7 com.xojo.XojoFramework 0x000000010a9b76fb 0x10a979000 + 255739
8 com.xojo.XojoFramework 0x000000010a9b6354 0x10a979000 + 250708
9 com.apple.CoreFoundation 0x00007fffbc30c5ec CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
10 com.apple.CoreFoundation 0x00007fffbc30c4eb _CFXRegistrationPost + 427
11 com.apple.CoreFoundation 0x00007fffbc30c252 ___CFXNotificationPost_block_invoke + 50
12 com.apple.CoreFoundation 0x00007fffbc2ca972 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
13 com.apple.CoreFoundation 0x00007fffbc2c995b _CFXNotificationPost + 667
14 com.apple.Foundation 0x00007fffbdcf70e3 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
15 com.apple.AppKit 0x00007fffb9fca03d -[NSApplication _postDidFinishNotification] + 297
16 com.apple.AppKit 0x00007fffb9fc9da2 -[NSApplication _sendFinishLaunchingNotification] + 208
17 com.apple.AppKit 0x00007fffb9e88a7b _DPSNextEvent + 2035
18 com.apple.AppKit 0x00007fffba5ff830 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2730
19 com.xojo.XojoFramework 0x000000010a9b7e17 0x10a979000 + 257559
20 com.xojo.XojoFramework 0x000000010a9b7e5b 0x10a979000 + 257627
21 touchbar.test 0x000000010a54dcf7 Delegate.Invoke%% + 7
22 touchbar.test 0x000000010a4c91d1 Application._CallFunctionWithExceptionHandling%%op + 273
23 com.xojo.XojoFramework 0x000000010ab1bdeb 0x10a979000 + 1715691
24 com.xojo.XojoFramework 0x000000010a9b7db4 0x10a979000 + 257460
25 com.apple.AppKit 0x00007fffb9e7d06d -[NSApplication run] + 926
26 com.xojo.XojoFramework 0x000000010ab1a1bb RuntimeRun + 40
27 touchbar.test 0x000000010a5269b8 REALbasic._RuntimeRun + 24
28 touchbar.test 0x000000010a6b8d4a _Main + 538
29 touchbar.test 0x000000010a6b8471 main + 65
30 touchbar.test 0x000000010a489bc4 start + 52

Thread 1:
0 libsystem_kernel.dylib 0x00007fffd172f4e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffd18177b5 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffd1817211 start_wqthread + 13

Thread 2:
0 libsystem_kernel.dylib 0x00007fffd172f4e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffd18177b5 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffd1817211 start_wqthread + 13

Thread 3:
0 libsystem_kernel.dylib 0x00007fffd172f4e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffd18177b5 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffd1817211 start_wqthread + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fffd172f4e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffd18177b5 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffd1817211 start_wqthread + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fffd172f4e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffd1817622 _pthread_wqthread + 1023
2 libsystem_pthread.dylib 0x00007fffd1817211 start_wqthread + 13

Thread 6:
0 libsystem_kernel.dylib 0x00007fffd172f4e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffd18177b5 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffd1817211 start_wqthread + 13

Thread 7:
0 libsystem_kernel.dylib 0x00007fffd172f4e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffd1817622 _pthread_wqthread + 1023
2 libsystem_pthread.dylib 0x00007fffd1817211 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000001 rbx: 0x000060000002cce0 rcx: 0x000000010ca202a8 rdx: 0x000060000002cce0
rdi: 0x0000600000087ee0 rsi: 0x00007fffbaaacc7a rbp: 0x00007fff55775490 rsp: 0x00007fff55775468
r8: 0x0000000000000050 r9: 0x0000600000087ee0 r10: 0x00004c19a8a8bea8 r11: 0x00007fffbaaacc7a
r12: 0x000000010ad1fca8 r13: 0x0000610000287f38 r14: 0x0000000000000010 r15: 0x00007fffd0d15b40
rip: 0x00007fffd0d15b5d rfl: 0x0000000000010202 cr2: 0x00004c19a8a8bec0

Logical CPU: 4
Error Code: 0x00000004
Trap Number: 14

I will look into it soon. I just need a macOS Version with Touchbar support.

Here you go: https://support.apple.com/kb/dl1897

Thanks. Fixed for next version.

16.5pr8:

  • Added more CloudKit methods and documentation.
  • Changed NSAttributedStringMBS to allow constructing one with empty text.
  • Fixed bugs in TouchBar classes. Please try!

I can confirm the MBP Touchbar class is working on a real device. Although it is a bit messy to set up.

Any change of TouchID support?

TouchID comes normally with keychain items which unlock via TouchID.
We will see…

16.5pr9:

  • Updated DynaPDF to 4.0.5.15.
  • Fixed issue with SplitCommaSeparatedValuesMBS. Last element is now returned, even if empty.
  • Changed SQLCommandMBS.Parameters to optionally return numeric values as SQLNumericMBS and not converted to double.
  • Added BigNumberMBS class, a 320bit floating point number.