Re: [MBS] ZipMBS and Zip64 support?

2020-02-18 Thread Michael Diehr
To revive a very old thread... Catalina apparently does things differently and no longer is happy with these ZipMBS files unless you do some more tweaks. The solution is to properly set the "created by" version number field to &h0314: dim zipVersionMadeBy as uint16 = &h0314 // 03 = unix. 14 hex

[MBS] Feature Request: WKWebViewConfiguration

2019-03-31 Thread Michael Diehr
It would be handy if we could set options in WKWebViewConfiguration for the WKWebView control. See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftwar

Re: [MBS] Crash in MBS_MacCF_CF_Plugin_19832

2019-01-22 Thread Michael Diehr
No, it was PR6, I'll try 19.0 release version and let you know. > On Jan 20, 2019, at 10:03 AM, Christian Schmitz > wrote: > > > >> Am 20.01.2019 um 17:57 schrieb Michael Diehr : >> >> Hi Christian, >> >> I'm seeing crashes in the f

Re: [MBS] Crash in MBS_MacCF_CF_Plugin_19832

2019-01-20 Thread Michael Diehr
endif End Function > On Jan 20, 2019, at 8:57 AM, Michael Diehr wrote: > > Hi Christian, > > I'm seeing crashes in the following code: > > Private Function BinaryPlistToDictionary(data as String) as Dictionary > #if TargetMacOS > >if data = "&q

[MBS] Crash in MBS_MacCF_CF_Plugin_19832

2019-01-20 Thread Michael Diehr
Hi Christian, I'm seeing crashes in the following code: Private Function BinaryPlistToDictionary(data as String) as Dictionary #if TargetMacOS if data = "" then return nil end if dim cb as CFBinaryDataMBS = NewCFBinaryDataMBSStr(data) if cb = nil then return nil

Re: [MBS] WKWebview titleChanged event

2018-12-30 Thread Michael Diehr
> I added two new events: > > TitleChanged(Title as String, oldTitle as string) > EstimatedProgressChanged(estimatedProgress as double, oldEstimatedProgress as > double) Thanks, I'm testing them now in PR5 and seem to work fine so far :-) ___ Mbsplugin

Re: [MBS] IconFamilyMBS Replacement

2018-12-30 Thread Michael Diehr
Nevermind, it looks like I already wrote code to do this back before I started using MBS :-) > On Dec 30, 2018, at 2:57 PM, Michael Diehr wrote: > > I see from > https://www.mbs-plugins.de/archive/2018-11-04/IconFamilyMBS_class_deprecated/monkeybreadsoftware_blog_xojo > tha

[MBS] IconFamilyMBS Replacement

2018-12-30 Thread Michael Diehr
I see from https://www.mbs-plugins.de/archive/2018-11-04/IconFamilyMBS_class_deprecated/monkeybreadsoftware_blog_xojo that IconFamilyMBS has been deprecated. I've been using the code to create actual icon files in the ICNS format that includes multiple sizes like this: Public Function ConvertT

[MBS] WKWebview titleChanged event

2018-12-21 Thread Michael Diehr
I'm trying to subclass the WKWebViewControlMBS https://www.monkeybreadsoftware.net/control-wkwebviewcontrolmbs.shtml to make it a drop-in replacement for the Xojo HTMLViewer. One thing missing is the TitleChanged event. For the long term, please consider this a feature request, but for the shor

Re: [MBS] Improvements for new Picture object types

2018-04-18 Thread Michael Diehr
sk picture? Or do I have that backwards? > On Apr 18, 2018, at 8:51 AM, Christian Schmitz > wrote: > > >> Am 18.04.2018 um 17:35 schrieb Michael Diehr : >> >> Hi Christian, >> >> In particular, Pictures now come in five flavors: > > Well, actua

[MBS] Improvements for new Picture object types

2018-04-18 Thread Michael Diehr
Hi Christian, This is a general feature request. Xojo now has a complicated variety of image objects as described here: http://developer.xojo.com/hidpi-support In particular, Pictures now come in five flavors: * Old style (32 bit picture + separate mask) - these are still used by the f

[MBS] Check if ImmutableBitmap has alpha channel

2018-04-17 Thread Michael Diehr
With Supports HiDPI ON, Xojo loads pictures as ImmutableBitmaps, which always claim hasAlphaChannel=True regardless of the source file. See here: https://forum.xojo.com/47184-picture-fromdata-gives-immutablebitmap-with-hasalphachannel-tru/last Apparently this is stored internally as an NSImage

Re: [MBS] ProcessMBS get command line parameters?

2017-09-17 Thread Michael Diehr
> On Sep 17, 2017, at 8:43 AM, Christian Schmitz > wrote: > > >> Am 17.09.2017 um 15:45 schrieb Michael Diehr : >> >> On macOS, using "ps -x -o pid,command" I can get a list of other running >> processes along with their command line parameters /

[MBS] ProcessMBS get command line parameters?

2017-09-17 Thread Michael Diehr
On macOS, using "ps -x -o pid,command" I can get a list of other running processes along with their command line parameters / flags. Is there a way to do this using MBS? ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftwar

[MBS] PIctureMBS.CopyPictureWithoutMaskMBS

2017-06-29 Thread Michael Diehr
I recently upgraded from 15.4 to 17.2 and noticed that these functions: PictureMBS.CopyPictureWithMaskMBS PictureMBS.CopyPictureWithoutMaskMBS are now throwing exceptions when using normal (32 bit) Xojo picture objects: Unhandled Exception: 0 Masks for Pictures with alpha channel is not suppo

[MBS] Win32 equivalent to AVAssetMBS.duration

2017-05-25 Thread Michael Diehr
I'm trying to get the play time (duration in seconds) of A/V assets such as .mp3 and .mp4 files. On Mac I just use AVAssetMBS.duration Is there an easy-to-use equivalent for Win32 builds? Thanks! ___ Mbsplugins_monkeybreadsoftware.info mailing list m

Re: [MBS] [ANN] MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 16.5

2017-01-02 Thread Michael Diehr
Hi Christian, When attempting to download via the Mirror (using http://www.mbsdownload.com/plugin/MBS-Xojo-Plugins165.dmg ) I get a zero byte file. The main download (using https://www.monkeybreadsoftware.de/xojo/download/plugin/MBS-Xojo-Plugins165.dmg ) works fine. This is via https://www.

Re: [MBS] ZipFileInfoMBS and Dates

2016-01-31 Thread Michael Diehr
te 'info.hour=d.hour 'info.Second=d.Second info.SetDate d > On Jan 31, 2016, at 4:53 PM, Michael Diehr wrote: > > Hi Christian, > > I'm getting some weird results where the Month and Day both seem to be off by > one and I'm wondering if

[MBS] ZipFileInfoMBS and Dates

2016-01-31 Thread Michael Diehr
Hi Christian, I'm getting some weird results where the Month and Day both seem to be off by one and I'm wondering if the documentation is wrong or I'm doing something wrong? Here's my code: dim zi as new ZipFileInfoMBS dim d as date = f.ModificationDate zi.day = d.day

Re: [MBS] PictureMBS and Premultiplied alpha?

2016-01-19 Thread Michael Diehr
On Jan 19, 2016, at 2:06 PM, Christian Schmitz wrote: > > >> Am 19.01.2016 um 21:48 schrieb Michael Diehr : >> >> Hi Christian, >> >> It appears that >> >> PictureMBS.RowInFormat(y,ImageFormatRGBA) >> >> is return

[MBS] PictureMBS and Premultiplied alpha?

2016-01-19 Thread Michael Diehr
Hi Christian, It appears that PictureMBS.RowInFormat(y,ImageFormatRGBA) is returning premultiplied RGBA data, even on Win32 which doesn't use Premultiplied alpha. Here's a little test: #if TargetWin32 app.UseGDIPlus = true #endif dim p as new picture(128,128) // new-style 32

[MBS] ScreenshotRectMBS and HighDPI Windows Apps

2016-01-12 Thread Michael Diehr
I'm finding that in Windows 10, the call dim p as picture = ScreenshotRectMBS(self.left,self.top,self.width,self.height) is returning the wrong area of the screen, when running on a display that is not set at 100% scale factor. My guess is that your call is using physical pixels rath

[MBS] Picture.RotateMBS bug on Win32

2015-10-31 Thread Michael Diehr
FYI, when using RotateMBS on Win32 with a 32 bit image source, although the image itself rotates fine, the image mask may have junk in the image channel. The mask junk is not, fortunately in the mask's alpha channel so the fix is therefore just to draw the mask to a temporary picture after rota

Re: [MBS] HTMLViewer.IELoadHTMLMBS

2015-10-20 Thread Michael Diehr
On Oct 20, 2015, at 3:35 AM, Christian Schmitz wrote: > > >> Am 20.10.2015 um 04:30 schrieb Michael Diehr : >> >> I'm not having any luck with HTMLViewer.IELoadHTMLMBS, testing under Windows >> 10 it always returns false. >> >> The documentat

[MBS] HTMLViewer.IELoadHTMLMBS

2015-10-19 Thread Michael Diehr
I'm not having any luck with HTMLViewer.IELoadHTMLMBS, testing under Windows 10 it always returns false. The documentation is a little unclear, saying "On Windows you may need to reset webviewer before or load "about:blank" to initialize the webviewer by Xojo (or Real Studio)." Do you have s

[MBS] Lossy Image Compression with Alpha (JPEG2000, BPG or WebP)

2015-10-16 Thread Michael Diehr
I'm looking for the ability to have good compression levels (lossy) with alpha channel. I believe the options are: JPEG2000 BPG http://bellard.org/bpg/ WebP https://developers.google.com/speed/webp/?hl=en Christian, any interest in adding one or more of these to MBS?

Re: [MBS] bitmapImageRepForCachingDisplayInRect

2015-10-08 Thread Michael Diehr
On Oct 7, 2015, at 3:31 PM, Christian Schmitz wrote: > >> My question: is there a way in MBSPlugins to do this and quickly convert >> back to a Xojo Picture object? I've some sample code which gets the >> bitmapImageRep and then converts it to a BMP and then use >> Picture.FromData(), but

[MBS] NSProcessInfoMBS constants

2015-10-08 Thread Michael Diehr
I'm seeing some issues with the constants for NSprocessInfoMBS: 1. constant is wrong type? dim nspi as new NSProcessInfoMBS dim options as uint64 = Bitwise.BitOr( NSProcessInfoMBS.NSActivitySuddenTerminationDisabled, NSProcessInfoMBS.NSActivityLatencyCritical) Gives a "parameters are not comp

[MBS] bitmapImageRepForCachingDisplayInRect

2015-10-07 Thread Michael Diehr
Christian, there's example code floating around that uses bitmapImageRepForCachingDisplayInRect to get a "screenshot" of a NSView - and it seems like it's more likely to pick up content such as HTMLViewers. (See https://forum.xojo.com/17847-yosemite-and-overlaymbs-fadetransition-can-t-capture-v

Re: [MBS] CPU use on OS X and Windows

2015-10-02 Thread Michael Diehr
On Sep 22, 2015, at 9:17 AM, Christian Schmitz wrote: > > >> Am 22.09.2015 um 17:36 schrieb Michael Diehr : >> >>> I think DarwinResourceUsageMBS is for your app. >> >> Hmm - testing the "Darwin Resource Usage" sample project however, I

Re: [MBS] CPU use on OS X and Windows

2015-09-22 Thread Michael Diehr
> I think DarwinResourceUsageMBS is for your app. Hmm - testing the "Darwin Resource Usage" sample project however, I get "0" for System Time used and UserTimeUsed, which doesn't seem very useful for calculating real-time CPU usage. Correction, after a while UserTimeUsed rises to 1 and then 2

[MBS] CPU use on OS X and Windows

2015-09-22 Thread Michael Diehr
. For Cocoa, I see DarwinVMStatisticsMBS but I'm not clear if that's per-process or global? For Win32, should I use WindowsProcessStatisticsMBS? Is it per-process or global? Thanks > On Sep 21, 2015, at 6:44 PM, Michael Diehr wrote: > > Perfect! thank you :-) > >

Re: [MBS] GPU use on OS X?

2015-09-21 Thread Michael Diehr
Perfect! thank you :-) > On Sep 21, 2015, at 1:40 AM, Christian Schmitz > wrote: > > >> Am 21.09.2015 um 02:39 schrieb Michael Diehr : >> >> See this thread: >> http://stackoverflow.com/questions/10110658/programmatically-get-gpu-percent-usage-in-os-x &

[MBS] GPU use on OS X?

2015-09-20 Thread Michael Diehr
See this thread: http://stackoverflow.com/questions/10110658/programmatically-get-gpu-percent-usage-in-os-x Is there anything in MBS which can do this (read the GPU's cpu %, used and free Vram numbers)? Thanks ___ Mbsplugins_monkeybreadsoftware.info

Re: [MBS] OverlayMBS performance in Cocoa?

2015-09-10 Thread Michael Diehr
On Sep 10, 2015, at 1:09 PM, Christian Schmitz wrote: > > * There is a .Update(NSImage as variant) call - would that be faster than > using the separate .Pict and .Mask objects? > > yes. Plugin builds a new NSImage from those pictures. I will try this. Does .Update(NSImage) retain a referenc

[MBS] OverlayMBS performance in Cocoa?

2015-09-10 Thread Michael Diehr
Hi Christian, I'm doing some profiling of my code and noticing that OverlayMBS seems rather slow in some cases, e.g. .Update and (perhaps) changing the value of .Alpha. Sometimes a single OverlayMBS is taking 7-14 msec to update, which is causing stutters in other animations onscreen. Some q

[MBS] OverlayMBS closed in thread : don't do it

2015-08-26 Thread Michael Diehr
Just ran into a baffling bug with OverlayMBS - turned out I was closing them inside a thread. Although everything looked normal, this was causing many problems later on including an eventual crash. It was extremely hard to debug this, as you can imagine. Christian - I wonder if you could add

Re: [MBS] ReadRow or Scanline for JPEG?

2015-08-20 Thread Michael Diehr
On Aug 20, 2015, at 1:32 PM, Christian Schmitz wrote: > Yes. Read row by row. > > By using InitJPEG/LoopJPEG and FinishJPEG. > And using a mode with ByRow in name. The memoryblock in PictureData has the > bytes for each row after calling LoopJPEG. Brilliant, works great - thank you! __

[MBS] ReadRow or Scanline for JPEG?

2015-08-20 Thread Michael Diehr
Hi Christian, When using PictureMBS, there are examples for loading giant pictures using PNGReaderMBS.ReadRow, and TIFFPictureMBS.Scanline(). I looked at JPEGImporter but it doesn't seem to have a way to get row-by-row data. Is there any equivalent technique for reading gigantic JPEG images?

[MBS] PictureMBS Memory Leak with 32 bit pictures in Win32

2015-07-24 Thread Michael Diehr
Testing using MBS 15.2pr7 in 32 bit build: The following code appears to leak the entire picture object, e.g. in this case 64MB: dim w,h as integer w = 4096 h= 4096 dim p as new picture (w,h) // new-style 32 bit picture, App.UseGDI+ must be True p.graphics.foreColor = &cFF p.gr

Re: [MBS] PictureMBS.ScaleMT Handle leak?

2014-12-14 Thread Michael Diehr
eak at all. On Dec 14, 2014, at 1:18 PM, Michael Diehr wrote: > Hi Christian, > > I'm trying to track down a leak of Handle objects in Win32, and the first > thing I'm seeing is that after running: > > PictureMBS.ScaleMT(0,...) > > I end up with 3 or 4

Re: [MBS] OverlayMBS infinite mouseMoved events on Windows 7

2014-12-14 Thread Michael Diehr
Thanks, Tim - what's odd is that windows only does this sometimes, not all the time. Since the workaround is trivial, it's not a big deal, but I wanted to mention it in case it was a bug. On Dec 13, 2014, at 1:37 PM, Tim Jones wrote: > On Dec 13, 2014, at 1:43 PM, Christian Schmitz > wro

[MBS] PictureMBS.ScaleMT Handle leak?

2014-12-14 Thread Michael Diehr
Hi Christian, I'm trying to track down a leak of Handle objects in Win32, and the first thing I'm seeing is that after running: PictureMBS.ScaleMT(0,...) I end up with 3 or 4 more handles than I started with. I'm using Windows Task Manager / Processes tab with "View/Select Columns...

[MBS] OverlayMBS infinite mouseMoved events on Windows 7

2014-12-13 Thread Michael Diehr
Hi Christian, I'm finding that the OverlayMBS plugin is giving me repeated MouseMoved event on Windows 7x64 at the same x,y coordinates, even if the mouse is not moving. It doesn't always happen - it seems like it's only triggered after some combination of window resizes, fullscreen, and perhap

Re: [MBS] NSViewMBS.RenderImage delivers empty picture

2014-10-23 Thread Michael Diehr
On Oct 22, 2014, at 10:32 AM, Tim Jones wrote: > On Oct 22, 2014, at 10:18 AM, Michael Diehr wrote: > >> It's actually a HTML page that can include any number of videos that may be >> overlaid in a complex web page, so I really need the RenderImage(). >> The &q

Re: [MBS] NSViewMBS.RenderImage delivers empty picture

2014-10-22 Thread Michael Diehr
On Oct 22, 2014, at 12:51 AM, Christian Schmitz wrote: > > Am 22.10.2014 um 00:31 schrieb Michael Diehr : > >> I'm wondering if there is perhaps an error status which you can detect >> inside .RenderImage() and return nil instead? > > No. Plugin asks view to

[MBS] NSViewMBS.RenderImage delivers empty picture

2014-10-21 Thread Michael Diehr
I'm using HTMLViewer.NSViewMBS.RenderImage(false) to capture playback of a html5 video. Most of the time it works fine, but on occasion, it delivers a blank frame. The code looks like this: // me : a HTMLViewer control dim nsv as NSViewMBS = me.mainFrameMBS.frameView.documentView

[MBS] FileMapping.OpenSharedMemory failing on Win32 builds

2014-07-29 Thread Michael Diehr
Hi Christian, I'm seeing FileMapping.OpenSharedMemory(id) failing on Win32 builds. I'll send you a demo project off-list. I'm wondering: are there any rules about the "id" string? The docs mention that it's limited to 31 chars on OS X but don't say anything about a limitation on Win32... -

Re: [MBS] JPEG2000...?

2014-07-26 Thread Michael Diehr
Which plugin is it part of? On Jul 25, 2014, at 8:23 PM, Christian Schmitz wrote: > > Am 25.07.2014 um 23:31 schrieb Michael Diehr : > >> Hi Christian, >> >> Is there any way to do JPEG2000 export under Win32 in MBS (without using >> QuickTime)? Back

Re: [MBS] JPEG2000...?

2014-07-25 Thread Michael Diehr
Hi Christian, To revive a very old thread... Is there any way to do JPEG2000 export under Win32 in MBS (without using QuickTime)? Back in 2003 you were playing with the Jasper library but it sounds like it was never finished. On Apr 25, 2003, at 11:05 AM, Christian Schmitz wrote: >> Chri

Re: [MBS] PictureMBS platform byte-order differences

2014-06-27 Thread Michael Diehr
It seems that a workaround is to add this: #if TargetWin32 data.EndianU32_LtoBMBS(0,data.size/4) #endif On Jun 27, 2014, at 9:03 AM, Michael Diehr wrote: > Hi Christian, > > If you run the following code on Cocoa vs. Win32 (with GDI+ enabled), the > final picture result

[MBS] PictureMBS platform byte-order differences

2014-06-27 Thread Michael Diehr
Hi Christian, If you run the following code on Cocoa vs. Win32 (with GDI+ enabled), the final picture result is different, it appears as if the pixels are mis-ordered: Pushbutton1.Action ' testing PictureMBS byte order dim w,h as integer w=32 h=32 dim p as new picture(w,h) dim r as R

[MBS] PictureMBS vs. PictureReaderMBS ?

2014-06-27 Thread Michael Diehr
Hi Christian, A few questions: 1. Do you have any idea what's the fastest way to get access to the pixel data ARGB (etc.) in a Xojo Picture? I'm trying to avoid making extra copies of the data, both to avoid the memory usage and the time wasted. Should PictureMBS be faster or slower than Pic

Re: [MBS] SystemInformationMBS.MacVRAMSize

2014-06-26 Thread Michael Diehr
An update to this: with 14.2 on 10.8.5 and a VRAM card size of 1024MB, SystemInformationMBS.MacVRAMSize is returning 268435456 which is 256MB. Any ideas why the value is wrong? On Nov 20, 2011, at 10:51 AM, Christian Schmitz wrote: > > Am 20.11.2011 um 17:28 schrieb Michael

Re: [MBS] [ANN] 14.2pr12

2014-06-21 Thread Michael Diehr
On Jun 20, 2014, at 1:56 PM, Christian Schmitz wrote: > Hi, > > > * Added HasAlphaChannel property for PictureEditorMBS, PictureReaderMBS and > PictureWriterMBS class. Thanks! > * Added NewPictureWriterMBS support for alpha images and for reusing images. what does "for reusing images" mea

Re: [MBS] FileMapping : Detach memoryblock?

2014-06-20 Thread Michael Diehr
Thanks - perhaps the documentation should be updated for the next release then if it's not working well... On Jun 20, 2014, at 2:01 PM, Christian Schmitz wrote: > > Am 20.06.2014 um 22:57 schrieb Michael Diehr : > >> If I do this, the data ends up blank on the receiving

Re: [MBS] FileMapping : Detach memoryblock?

2014-06-20 Thread Michael Diehr
il? Or that I'm setting my MemoryBlock to nil? On Jun 20, 2014, at 11:56 AM, Christian Schmitz wrote: > > Am 20.06.2014 um 17:46 schrieb Michael Diehr : > >> I'm experimenting with FileMappingMBS. Is there a way to detach the memory >> block received and then

[MBS] FileMapping : Detach memoryblock?

2014-06-20 Thread Michael Diehr
I'm experimenting with FileMappingMBS. Is there a way to detach the memory block received and then destroy the FileMappingView, without losing the memory block? I'm trying to avoid an extra MemoryBlock copy if possible. Server: dim fm as new FileMappingMBS fm.CreateSharedMemory("idxxx",si

[MBS] PictureMBS.Scale odd sizes

2014-06-20 Thread Michael Diehr
Does ScaleMT have any rules about the size of the images being scaled? I'm seeing weird results when the images are odd sizes - is there a "multiple-of-4" row width rule, perhaps? ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeyb

[MBS] One step conversion from memory block ARGB to 32 bit picture?

2014-06-18 Thread Michael Diehr
Hi Christian, Do any of the Picture methods handle a single call to create a 32-bit picture (with alpha channel) from a ARGB format memory block, and work on Win32 with GDI+? I'm trying MemoryblockARGBtoPictureMBS() but it seems to ignore the alpha bytes. Thus, right now, it takes three steps:

[MBS] OverlayMBS and 32-bit pictures on Win32?

2014-06-16 Thread Michael Diehr
Hi Christian, When I try to use OverlayMBS with 32-bit pictures on Win32 builds with GDI+ enabled, nothing is showing. Could you see about fixing that? Thanks, -mike ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.i

Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2014-06-16 Thread Michael Diehr
ld be great if you could get this working... any ideas? if this is a Xojo bug, has it been reported to them yet? On Sep 27, 2013, at 10:08 AM, Christian Schmitz wrote: > > Am 27.09.2013 um 19:05 schrieb Michael Diehr : > >> You are testing with GDI+ enabled in the applicati

Re: [MBS] ZipMBS and Zip64 support?

2014-06-04 Thread Michael Diehr
Thanks, Christian, I believe Zip files have this version # in two places: in each [local file header], as well as in the [central directory header] (in fact, the CDH has 'version made by' and 'version needed to extract' fields) Oddly, in my testing, all that I needed to do was change a single

Re: [MBS] ZipMBS and Zip64 support?

2014-06-04 Thread Michael Diehr
ForCtyping, and also for flagBase. Could you give an example? On Jun 4, 2014, at 2:53 AM, Christian Schmitz wrote: > > Am 03.06.2014 um 23:54 schrieb Michael Diehr : > >> Christian - perhaps you could offer us some control over the version # >> that's output in th

Re: [MBS] ZipMBS and Zip64 support?

2014-06-03 Thread Michael Diehr
x27; close it end if Christian - perhaps you could offer us some control over the version # that's output in the zip files? On Jun 3, 2014, at 1:43 PM, Michael Diehr wrote: > I did some quick tests, comparing three files: > > 1. Zip file generated by MBS > 2. Zip64 f

Re: [MBS] ZipMBS and Zip64 support?

2014-06-03 Thread Michael Diehr
created by MBS, and change that one byte (from a 002D to 000A or 0014), then the Finder properly handles the file. I'm not sure what to do about this - it looks like it's a bug in the Finder, since the "version 4.5" field appears to be technically correct. On Jun 3, 2014, at

Re: [MBS] ZipMBS and Zip64 support?

2014-06-03 Thread Michael Diehr
he file created: Application running on 10.6.8: Zip64 = True - the zipped file expands to a .gczp file which expands to the original zipped file which expands to a .gczp file, and so on." On Jun 2, 2014, at 3:02 PM, Christian Schmitz wrote: > > Am 02.06.2014 um 23:31 schrieb Michael

Re: [MBS] [ANN] 14.2pr9

2014-06-03 Thread Michael Diehr
I'm seeing something else odd. I'm on OS X 10.8.5 and I downloaded the zip version of 14.2PR9. After unzipping, when I try to open the folder containing the MBS plugins, the finder gets very very slow - I can see it creating the icons for each file one-by-one - taking at least a second per it

Re: [MBS] ZipMBS and Zip64 support?

2014-06-03 Thread Michael Diehr
I'll give the 14.2pr version a try and report back. On Jun 2, 2014, at 3:02 PM, Christian Schmitz wrote: > > Am 02.06.2014 um 23:31 schrieb Michael Diehr : > >> Hi Christian, >> >> Does the Zip64 support in the ZipMBS classes still not work? The >>

[MBS] ZipMBS and Zip64 support?

2014-06-02 Thread Michael Diehr
Hi Christian, Does the Zip64 support in the ZipMBS classes still not work? The documentation says "In plugin version 11.1 we added zip64 flags for CreateFile method so you can create bigger zip archives. Still it seems not to work for our test to have zip archives bigger than 2 GB." __

Re: [MBS] Replacements for deprecated QuickTime Calls on Movie Objects

2014-01-25 Thread Michael Diehr
Great, thanks! I'm also reading up on https://developer.apple.com/library/mac/technotes/tn2300/_index.html which is a good introduction to the whole QuickTime -> AVFoundation changes. On Jan 25, 2014, at 9:25 AM, Christian Schmitz wrote: > > Am 25.01.2014 um 18:17 schrieb

[MBS] Replacements for deprecated QuickTime Calls on Movie Objects

2014-01-25 Thread Michael Diehr
In the past, one could do this: dim f as folderItem = ... dim m as movie = f.opeanAsMovieMBS (or ... f.openAsMovie) dim d as double = Movie.DurationMBS But this doesn't work in the latest Xojo alphas. (durationMBS returns -1) Does MBS have any equivalents which don't require quicktime an

[MBS] OverlayMBS and Threads in Win32

2013-10-11 Thread Michael Diehr
Christian, I'm running into an issue with OverlayMBS plugins in threaded win32 apps, perhaps you can see if this is fixable on your end? See ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgatew

Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2013-09-27 Thread Michael Diehr
2013, at 2:36 AM, Christian Schmitz wrote: > > Am 23.09.2013 um 03:24 schrieb Michael Diehr : > >> I'm just guessing here, as I've never used GDI+ from C myself. >> >> Error 2 is >> "InvalidParameter" according to >> http:/

Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2013-09-22 Thread Michael Diehr
ing a new BitmapData object for bitmapdata2? On Sep 22, 2013, at 9:19 AM, Christian Schmitz wrote: > > Am 22.09.2013 um 18:13 schrieb Michael Diehr : > >> As I understand it, the new-style picture images require gdiplus (GDI+) and >> may require some different fla

Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2013-09-22 Thread Michael Diehr
oft.com/en-us/library/windows/desktop/ms534137(v=vs.85).aspx On Sep 22, 2013, at 8:51 AM, Christian Schmitz wrote: > > Am 22.09.2013 um 17:40 schrieb Michael Diehr : > >> Thanks, Christian, >> >> Is that a Win32 API bug or something in the Xojo Plugin API? >

Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2013-09-22 Thread Michael Diehr
Thanks, Christian, Is that a Win32 API bug or something in the Xojo Plugin API? On Sep 22, 2013, at 3:07 AM, Christian Schmitz wrote: > > Am 22.09.2013 um 03:59 schrieb Michael Diehr : > >> Should PictureMBS.ScaleMT work in Win32 builds with new-style picture >> ob

[MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2013-09-21 Thread Michael Diehr
I'm testing Xojo 2013 R3 with MBS 13.2 (release version). On Cocoa, I'm using PictureMBS.ScaleMT, and seems to work OK with the new style pictures that are created with New Picture(width,height) On Windows, I'm getting blank images (all zeros) in the scaled pictures. Should PictureMBS.ScaleMT w

[MBS] DisableScreenUpdatesMBS is Evil

2013-07-31 Thread Michael Diehr
After updating to Xojo and building my app in Cocoa I had some bizarre windows update bugs : a window behaved normally until a certain point, after which it stopped refreshing nicely, and even more strange, every window created after that point also showed the problem. I eventually traced it do

[MBS] QTKitMovieMBS.FrameImageAtTime is very slow

2013-07-26 Thread Michael Diehr
I'm updating my code from Carbon to Cocoa, and finding a dramatic slowdown when using QTKitMovieMBS to get a movie frame, as opposed to EditableMovie.Picture With this code: while currentTime <= maxTime #if TargetCocoa dim p as picture dim qttime as QTKitTimeMBS = new QTKi

[MBS] QTKitMovieMBS on thread

2013-07-26 Thread Michael Diehr
Is it possible to create one QTKitMovieMBS in the main thread, but then, in a thread, change which movie file the movie points to? In other words, I want to process a bunch of different movies inside a thread and I'm wondering if I can just create one movie object outside the thread, then re-us

[MBS] EditableMovie.Picture = nil in Cocoa builds

2013-07-15 Thread Michael Diehr
Christian, FYI see https://forum.xojo.com/2971-editablemovie-picture-fails-in-cocoa If there was a way to work around this issue in Cocoa builds using MBS plugins, it would be great. I tried FolderItem.OpenMovieMBS but the movie object returned still has a nil handle, and returns Nil when you

Re: [MBS] [ANN] 13.2pr4

2013-06-04 Thread Michael Diehr
> * Fixed bug in Cocoa exception handling from pr3. Can you say more about how to use this, and what the pr3 bug was? Or is that detailed in the release notes? ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info htt

Re: [MBS] PictureMBS with 32-bit Pictures

2013-06-02 Thread Michael Diehr
On Jun 1, 2013, at 8:52 AM, Christian Schmitz wrote: > Am 01.06.2013 um 02:13 schrieb Michael Diehr : > >> Now that Real/Xojo is supporting true 32-bit pictures with alpha, is there >> any way to get the PictureMBS class to work with them? > > > I'll updat

[MBS] DE vs US servers

2013-06-02 Thread Michael Diehr
Christian, FYI, I'm getting faster download speeds (about 2x to 3x faster) using the .DE server than the .US one, even though I'm located on the west coast of the USA. ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftwar

Re: [MBS] PictureMBS with 32-bit Pictures

2013-06-02 Thread Michael Diehr
On Jun 1, 2013, at 8:52 AM, Christian Schmitz wrote: > > Am 01.06.2013 um 02:13 schrieb Michael Diehr : > >> Now that Real/Xojo is supporting true 32-bit pictures with alpha, is there >> any way to get the PictureMBS class to work with them? > > > I'll up

[MBS] PictureMBS with 32-bit Pictures

2013-05-31 Thread Michael Diehr
Now that Real/Xojo is supporting true 32-bit pictures with alpha, is there any way to get the PictureMBS class to work with them? This doesn't seem to work: dim p as new picture(width,height) // new-style 32 bit picture dim pmbs as new PictureMBS(p,true) // pmbs.isValid = false The MBS doc

Re: [MBS] Picture.CopyARGBToMemoryBlock?

2013-05-31 Thread Michael Diehr
On May 31, 2013, at 12:25 PM, Christian Schmitz wrote: > > Am 31.05.2013 um 20:55 schrieb Michael Diehr : > >> For now I can probably do it with two separate calls, e.g.: >> >> pic.CopyXRGBtoMemoryblockMBS(d,0) >> pic.mask.CopyAtoMemoryblockMBS(d,0,0

[MBS] Picture.CopyARGBToMemoryBlock?

2013-05-31 Thread Michael Diehr
Is there a MBS plugin which supports the new 32-bit with alpha Xojo pictures? I'd like to make a single call such as: Picture.CopyARGBToMemoryBlock(memoryBlock,offset) and get all 32 bits of color data copied. For now I can probably do it with two separate calls, e.g.: pic.CopyXRGBtoMemoryblo

[MBS] NSColorPanelMBS and TextAreas

2012-12-30 Thread Michael Diehr
The documentation notes "If you compile for Cocoa, a TextField/TextArea automatically registers for color panel. So in order to avoid them updating text color with color panel selection, clear the focus by calling window.clearfocus method." However, I'm trying to use the NSColorPanelMBS to chan

Re: [MBS] HTMLViewer.RenderWebsiteImageMBS is slow

2012-12-28 Thread Michael Diehr
On Dec 28, 2012, at 12:14 PM, Christian Schmitz wrote: > > Am 28.12.2012 um 19:35 schrieb Michael Diehr : > >> I'm using HTMLViewer.RenderWebsiteImageMBS and finding that it's taking >> 300msec to render the image, even though the window is only 400x300pix

[MBS] HTMLViewer.RenderWebsiteImageMBS is slow

2012-12-28 Thread Michael Diehr
I'm using HTMLViewer.RenderWebsiteImageMBS and finding that it's taking 300msec to render the image, even though the window is only 400x300pixels in size, on a brand new retina book running 10.8.2 with Safari 6.0.2. I've tried some variations such as dim nsv as NSViewMBS = me.mainFrameMB

[MBS] OverlayMBS update and resize?

2012-12-22 Thread Michael Diehr
In an OverlayMBS, I'm finding it impossible to simultaneously update the pictures AND change the window bounds. I always get a single update in which either the picture is blank (drawing white) or the picture is not yet updated and thus is stretched to the wrong size. I've tried various combi

Re: [MBS] Cocoa: OpenAsMovieMBS doesn't work but OpenAsMovie does?

2012-12-19 Thread Michael Diehr
On Dec 19, 2012, at 8:27 AM, Christian Schmitz wrote: > > Am 19.12.2012 um 15:34 schrieb Michael Diehr : > >> Under Cocoa (10.8.2) and MBS 12.5 with RB 2012 R2, it seems that >> OpenAsMovieMBS returns a movie object with .handle=nil, yet the regular old >>

[MBS] Cocoa: OpenAsMovieMBS doesn't work but OpenAsMovie does?

2012-12-19 Thread Michael Diehr
Under Cocoa (10.8.2) and MBS 12.5 with RB 2012 R2, it seems that OpenAsMovieMBS returns a movie object with .handle=nil, yet the regular old OpenAsMovie works just fine. This seems backwards to me. dim f as FolderItem = GetOpenFolderItem("") if f = nil then return // this code works in

[MBS] Getting and setting ARGB data from new style pictures?

2012-12-16 Thread Michael Diehr
RB now supports true 32 bit pictures where the mask is part of the picture data, obtained by calling new picture (width, height) rather than new picture (width,height,depth) Is there a MBS function get or set the ARGB data that's being used in new-style picture objects? The documentation f

Re: [MBS] Determine # of CPU cores or hyperthreads?

2012-12-16 Thread Michael Diehr
Thanks! I want to know the # of Cores so I have an idea how many copies of a background helper app to launch. 1 for 2 cores, 2 for 3 cores, etc. On Dec 15, 2012, at 3:06 PM, Christian Schmitz wrote: > > Am 15.12.2012 um 23:25 schrieb Michael Diehr : > >> Is there a way to d

[MBS] Determine # of CPU cores or hyperthreads?

2012-12-15 Thread Michael Diehr
Is there a way to determine either the # of actual CPU cores or # of virtual cores (in case the CPU has hyper threading?) Desired on OS X and Win32. Thx ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml0

Re: [MBS] “Autoreleased with no pool” messages

2012-09-23 Thread Michael Diehr
On Sep 22, 2012, at 8:04 AM, Christian Schmitz wrote: > > Am 22.09.2012 um 13:19 schrieb Arnaud Nicolet : > >> Greetings, >> >> I've been getting the messages quoted below in the Console. I'm guessing it >> comes from some methods in the plugin (MBS). Is it safe to ignore? > > > It's leaking

[MBS]

2012-08-21 Thread Michael Diehr
Hi Christian, Please see which may identify an issue with 12.3 and the latest beta of RB regarding window.top coordinates with OverlayMBS. Thanks, -mike ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https:/

  1   2   >