some of my apps, in the app's open event had this code:
Now, after wrapping such apps with App Wrapper 3 (3.9), the app crashes as soon as launched with the friendly system-message:
An exception of class FunctionNotFoundException was not handled. The app must shut down.
Wrapping the app with App Wrapper 3 (3.8) no exception was raised.
Now, to be honest, I don't even know why I used such function, so I'm ready to drop the call App_AllowsAutomaticWindowTabbing(false), yet I'd like at least to know if there is any way to keep it without firing the exception.
Who knows, maybe there is somebody else who, using this code, after wrapping his/her app finds it crashing.
Suggestions welcome. Thank you.
BTW: The snippet below was taken from the forum.
Public Sub App_AllowsAutomaticWindowTabbing(pbAllowTabGrouping As Boolean) #if TargetMacOS and TargetCocoa then Soft Declare Function objc_getClass lib "libobjc.dylib" (name As CString) As Ptr Soft Declare Function sel_registerName lib "libobjc.dylib" (name As CString) As Ptr Soft Declare Function RespondsToSelector Lib "Cocoa" selector "respondsToSelector:" (target As Ptr, Sel As Ptr) As Boolean Dim nsWindowClass As Ptr = objc_getClass("NSWindow") if RespondsToSelector(nsWindowClass, sel_registerName("setAllowsAutomaticWindowTabbing:")) then Soft Declare Sub AllowTabGrouping lib "AppKit" selector "setAllowsAutomaticWindowTabbing:" (classPtr As Ptr, enableDisable As Boolean) AllowTabGrouping(nsWindowClass, pbAllowTabGrouping) end if #endif End Sub