Re: [MBS] How capture mousedown or gotFocus for cocoaControlMBS
Am 20.06.2014 um 22:54 schrieb Jim Pitchford : > Christian > >> Maybe better use NSTextViewControlMBS directly? >> It forwards events so you get the normal Xojo events there. > > nsTextViewControlMBS seems to fix the problem of text spilling into other > containers, but nsTextViewControlMBS doesn’t have mouseDown, mouseUp, > gotFocus, lostFocus events either - how can I get these events? Ah. Strange. I will have to check this. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] FileMapping : Detach memoryblock?
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 end: >> >> dim m as memoryblock (...) >> fm.CreateMemoryblock(id, m.size) >> fm.deleteSharedMemory=false // the receiver will handle deleting it >> (...) >> fmv = fm.MapView(m,0,m.size) // pass in our memoryblock >> > > here we suggest the OS to use a given address from memoryblock, but that > fails as far as I see as the memory is already allocated. > So the feature may be useless in Xojo. > > Sincerely > Christian > > -- > Read our blog about news on our plugins: > > http://www.mbsplugins.de/ > > ___ > Mbsplugins_monkeybreadsoftware.info mailing list > mbsplugins@monkeybreadsoftware.info > https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] FileMapping : Detach memoryblock?
Am 20.06.2014 um 22:57 schrieb Michael Diehr : > If I do this, the data ends up blank on the receiving end: > >dim m as memoryblock (...) >fm.CreateMemoryblock(id, m.size) >fm.deleteSharedMemory=false // the receiver will handle deleting it >(...) >fmv = fm.MapView(m,0,m.size) // pass in our memoryblock > here we suggest the OS to use a given address from memoryblock, but that fails as far as I see as the memory is already allocated. So the feature may be useless in Xojo. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] FileMapping : Detach memoryblock?
Thanks - I think I'm confused about how the constructor that lets you pass in a memoryBlock is supposed to work. If I do this, it works fine: the data is transferred. dim m as memoryblock (...) fm.CreateMemoryblock(id, m.size) fm.deleteSharedMemory=false // the receiver will handle deleting it (...) fmv = fm.MapView(0,m.size) dim buffer as MemoryBlock = fmv.Memory if buffer <> nil then m.CopyBytesMBS(0,m.size,buffer,0) fmv.FlushView fmv=nil If I do this, the data ends up blank on the receiving end: dim m as memoryblock (...) fm.CreateMemoryblock(id, m.size) fm.deleteSharedMemory=false // the receiver will handle deleting it (...) fmv = fm.MapView(m,0,m.size) // pass in our memoryblock fmv.FlushView fmv=nil m= nil In the second example, is the problem that I'm setting FMV to nil? 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 destroy the FileMappingView, without losing the >> memory block? I'm trying to avoid an extra MemoryBlock copy if possible. > > doesn'T sound possible. Destroying the file mapping will not allocate new > memory for the memoryblock. > > Sincerely > Christian > > -- > Read our blog about news on our plugins: > > http://www.mbsplugins.de/ > > ___ > Mbsplugins_monkeybreadsoftware.info mailing list > mbsplugins@monkeybreadsoftware.info > https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
[MBS] [ANN] 14.2pr12
Hi, * Fixed a bug on Windows IconMBS function where icon would just be in top left area of image. * Changed folderitem.IconMBS, IconMaskMBS and IconImageMBS to user newer Cocoa based APIs if possible. * Added HasAlphaChannel property for PictureEditorMBS, PictureReaderMBS and PictureWriterMBS class. * Added NewPictureWriterMBS support for alpha images and for reusing images. * Added ContainerControl.NSViewMBS, useful to animate containers. * Updated Chromium plugin classes for the future. * Fixed bug in LinuxHIDInterfaceMBS.MatchDevice event. * Fixed problem with GDI Plus bitmap in PictureMBS and other picture functions. * Fixed NSGraphicsMBS.graphicsContextWithNSView to raise NSExceptionMBS objects if they happen. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
[MBS] How capture mousedown or gotFocus for cocoaControlMBS
Christian > Maybe better use NSTextViewControlMBS directly? > It forwards events so you get the normal Xojo events there. nsTextViewControlMBS seems to fix the problem of text spilling into other containers, but nsTextViewControlMBS doesn’t have mouseDown, mouseUp, gotFocus, lostFocus events either - how can I get these events? Further, I have a canvas covering this control in a parent containerCOntrol (it is used for dragNdrop and other stuff). With other controls (e.g. textArea) the mouse and keyboard events drop right through the canvas to the textArea or cocoaControlMBS, but with NSTextViewControlMBS they don’t. How can I fix this? Regards Jim ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] PictureMBS.Scale odd sizes
Am 20.06.2014 um 17:03 schrieb 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? > No. But maybe you found a bug. If you can, please email me a sample project off list. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] FileMapping : Detach memoryblock?
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 destroy the FileMappingView, without losing the > memory block? I'm trying to avoid an extra MemoryBlock copy if possible. doesn'T sound possible. Destroying the file mapping will not allocate new memory for the memoryblock. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] DynaPDFRasterizerMBS optimization
Am 20.06.2014 um 18:27 schrieb Jean-Luc Arnaud : > Is it possible to do another way, in particular when the PDF file > includes a lot of page? Why not render in background pages on request? My WebPDF example does that. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
[MBS] DynaPDFRasterizerMBS optimization
Trying to optimize my PDF reader. When resizing a page, I have to render it (of course). And for rendering a page, I have to rasterize all the PDF document (DynaPDFRasterizerMBS), given that this function gets width and height of the canvas target as parameters. Is it possible to do another way, in particular when the PDF file includes a lot of page? TIA -- Jean-Luc Arnaud ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] IconImageMBS slow 10.9
Am 20.06.2014 um 16:44 schrieb Garth Hjelte : > So IconImageMBS was Carbon calls in your plug? I think so. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
[MBS] FileMapping : Detach memoryblock?
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",size) dim fmv as FileMappingViewMBS = fm.MapView(0,size) fmv.memory.stringValue = "..." Client dim fm as new FileMappingMBS fm.OpenSharedMemory("idxxx") dim fmv as FileMappingViewMBS = fm.MapView(0,size) dim data as memoryblock = fm.memory // keep the memory block fm.DeleteSharedMemory("idxxx") // destroy the FileMapping object // is our data memory block still valid? ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] IconImageMBS slow 10.9
At 09:21 AM 6/20/2014, you wrote: >> -How far back does this work - does it work in 10.4? 10.5? > >Docs don't tell, so maybe 10.4 or earlier. Thanks, I'll check. >> -Based on what you know ("Apple optimized something else"), is this >> something in 10.9 to worry about or does it go further back? >Apple does no longer care about Carbon stuff... So IconImageMBS was Carbon calls in your plug? >> -I assume on Windows the IconImageMBS and IconMaskMBS still are valid? >yes. OK, thanks very much for your time. Garth Hjelte Sampler User ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
[MBS] PictureMBS.Scale odd sizes
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@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] Dropbox Plugins
I think this is a 10.10 bug... had the same problem with FolderItem’s resolving aliases in my own apps. I then tried symbolic links, and same problem. Then it just started working again after trying the latest Xojo beta, but also worked with the current release as well. -Jason > On Jun 20, 2014, at 9:46 AM, William Koperwhats > wrote: > > Sorry, my bad. If anyone was paying attention to their dropbox notifications, > I accidentally moved - rather than copied - the plugins into my Xojo Plugins > folder. All is back to how it should be now. > > On a side note, has anyone noticed that in the new Mac OS 10.10 beta, Xojo > has lost the ability to traverse *aliases* to directories containing external > plugins. I used to simply keep an alias to the latest Xojo Plugins folder on > Dropbox in my “Plugins” folder in Xojo, but that doesn’t work any more. > > Cheers. > > -bill k > > ___ > Mbsplugins_monkeybreadsoftware.info mailing list > mbsplugins@monkeybreadsoftware.info > https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] Dropbox Plugins
Am 20.06.2014 um 16:46 schrieb William Koperwhats : > Sorry, my bad. If anyone was paying attention to their dropbox notifications, > I accidentally moved - rather than copied - the plugins into my Xojo Plugins > folder. All is back to how it should be now. No problem. I'll upload new stuff tonight and will remove everything. > On a side note, has anyone noticed that in the new Mac OS 10.10 beta, Xojo > has lost the ability to traverse *aliases* to directories containing external > plugins. I used to simply keep an alias to the latest Xojo Plugins folder on > Dropbox in my “Plugins” folder in Xojo, but that doesn’t work any more. Sorry, no idea. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
[MBS] Dropbox Plugins
Sorry, my bad. If anyone was paying attention to their dropbox notifications, I accidentally moved - rather than copied - the plugins into my Xojo Plugins folder. All is back to how it should be now. On a side note, has anyone noticed that in the new Mac OS 10.10 beta, Xojo has lost the ability to traverse *aliases* to directories containing external plugins. I used to simply keep an alias to the latest Xojo Plugins folder on Dropbox in my “Plugins” folder in Xojo, but that doesn’t work any more. Cheers. -bill k ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] IconImageMBS slow 10.9
Am 20.06.2014 um 15:04 schrieb Garth Hjelte : > -How far back does this work - does it work in 10.4? 10.5? Docs don't tell, so maybe 10.4 or earlier. > -Based on what you know ("Apple optimized something else"), is this something > in 10.9 to worry about or does it go further back? Apple does no longer care about Carbon stuff... > -I assume on Windows the IconImageMBS and IconMaskMBS still are valid? yes. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] IconImageMBS slow 10.9
At 03:11 AM 6/20/2014, you wrote: >>Sorry, this is a carry over from something else. I'm finding on OSX 10.9 that >>especially in cases of folders, FolderItem.IconImageMBS can be pretty slow. >>Can you comment on that - is there anything smart that could speed such stuff >>up? >Apple optimized something else. > >But you can use Cocoa classes: > > // get image > dim n as NSImageMBS = NSWorkspaceMBS.iconForFile(SpecialFolder.desktop) > // set the size we want > n.setSize 512,512 > // make a copy as picture > Backdrop = n.CopyPictureWithMask >with next plugin on I will do this internally for you and use NSWorkSpace >function. Thanks - this works fine (even in Carbon builds), although I still have to have the client test it for speed. -How far back does this work - does it work in 10.4? 10.5? -Based on what you know ("Apple optimized something else"), is this something in 10.9 to worry about or does it go further back? -I assume on Windows the IconImageMBS and IconMaskMBS still are valid? Garth Hjelte Sampler User ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] IconImageMBS slow 10.9
Am 20.06.2014 um 03:47 schrieb Garth Hjelte : > Sorry, this is a carry over from something else. I'm finding on OSX 10.9 that > especially in cases of folders, FolderItem.IconImageMBS can be pretty slow. > Can you comment on that - is there anything smart that could speed such stuff > up? with next plugin on I will do this internally for you and use NSWorkSpace function. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] cocoaControl not obeying edge of containerControl
Am 20.06.2014 um 00:19 schrieb Jim Pitchford : > Christian > > If I scroll a cocoaControlMBS containing a textViewMBS above or below the > edge of the containerControl in which it is contained - the text bleeds over > the edge and into other surrounding objects. Sounds like clipping does not work. > I also notice what might be a related issue, that if I put a canvas control > over the top of the cocoaControlMBS (e.g. to capture mouse movements) then > the cocoaControl always appears over the top of the canvas control when > running - preventing any events getting to the canvas. Also interesting. Do you have examples for both? > Is there a way of solving these two issues? Well, why don't you use NSTextViewControlMBS? Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] NSMenuItemMBS, Cocoa and Lion 10.7.5
Am 20.06.2014 um 09:52 schrieb Jean-Luc Arnaud : > Using NSMenuItemMBS (from the "IP in Menu Bar" software), I'm getting an > app crash when selecting any of the menu items, if compiling (or running > in the IDE) with Cocoa frameworks. When you get crashes, please email me crash report and example. > Questions: Is this an expected behaviour, related to an old version of > Mac OS? it should work fine. > Is it possible to use NSMenuItemMBS in Cocoa > Framewoks under Lion? Yes. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] IconImageMBS slow 10.9
Am 20.06.2014 um 03:47 schrieb Garth Hjelte : > Sorry, this is a carry over from something else. I'm finding on OSX 10.9 that > especially in cases of folders, FolderItem.IconImageMBS can be pretty slow. > Can you comment on that - is there anything smart that could speed such stuff > up? Apple optimized something else. But you can use Cocoa classes: // get image dim n as NSImageMBS = NSWorkspaceMBS.iconForFile(SpecialFolder.desktop) // set the size we want n.setSize 512,512 // make a copy as picture Backdrop = n.CopyPictureWithMask Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
[MBS] NSMenuItemMBS, Cocoa and Lion 10.7.5
Issue or compatibility problem? Using NSMenuItemMBS (from the "IP in Menu Bar" software), I'm getting an app crash when selecting any of the menu items, if compiling (or running in the IDE) with Cocoa frameworks. Running in Carbon, all is right. On another Mac under Mavericks, Cocoa frameworks works well. Questions: Is this an expected behaviour, related to an old version of Mac OS? Or an issue? Is it possible to use NSMenuItemMBS in Cocoa Framewoks under Lion? I'm using MBS 14.2pr10. Thanks for any help. -- Jean-Luc Arnaud ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info