Re: [MBS] DREraseMBS examples?

2020-06-14 Thread Marnaud
> Le 14 juin 2020 à 14:28, Christian Schmitz a > écrit: > >> I'd like to convert the following shell command to Xojo (MBS) format: >> diskutil secureErase 0 /dev/rdisk5 > > That should work fine. Using which class? >> I'm considering trying the DREraseMBS object for this, like that: >> >>

Re: [MBS] Function not matching any of the available signatures?

2020-05-11 Thread Marnaud
> Le 11 mai 2020 à 22:15, Christian Schmitz a > écrit: > >> Am 11.05.2020 um 20:32 schrieb Marnaud : >> Just one more question, please: should I pass a NativePath or a ShellPath? > > NativePath, please. Thank you. It's not always easy to know whether a particular

Re: [MBS] Function not matching any of the available signatures?

2020-05-11 Thread Marnaud
> Le 11 mai 2020 à 19:13, Christian Schmitz a > écrit: > >> Am 11.05.2020 um 19:03 schrieb Marnaud : >> >> >>> Le 11 mai 2020 à 19:00, Christian Schmitz >>> a écrit: >>> >>> Please use NSFileManagerMBS.defaultManager.createSy

Re: [MBS] Function not matching any of the available signatures?

2020-05-11 Thread Marnaud
> Le 11 mai 2020 à 19:00, Christian Schmitz a > écrit: > > Please use NSFileManagerMBS.defaultManager.createSymbolicLink, if I remember > correctly. Thanks. I made the change: if not NSFileManagerMBS.defaultManager.createSymbolicLink(f,s,ne) then Return 17 And Xojo still complains about

[MBS] Function not matching any of the available signatures?

2020-05-11 Thread Marnaud
Hello, I'm trying to use the NSFileManagerMBS class. At first, I tried with the shared class: dim ne As NSErrorMBS s= if not NSFileManagerMBS.createSymbolicLink(f,s,ne) then Return 17 Xojo complained: “There is more than one method with this name but this does not match any of the available

Re: [MBS] [ANN] 20.2pr7

2020-05-07 Thread Marnaud
> * Deprecated our global functions to query system folders in favor of > SpecialFolders module in Xojo. Hello, Does this indicate Xojo added all the folders provided by the plugin or rather we just can't obtain them easily (other than with the OS char codes) any more? I'm obviously talking

[MBS] NSScreenMBS y coordinate strange value

2020-04-05 Thread Marnaud
Hello, With a method to put a window to the main screen (the screen whose the user has the focus), I get weird results. Here are the offending lines: x=(w.Left-csc.frame.MinX)+nsc.frame.MinX y=(w.Top-csc.frame.MinY)+nsc.frame.MinY (where w is the window, csc is the screen where the window is

Re: [MBS] Shell to AutorizationMBS question

2020-03-26 Thread Marnaud
> Le 23 mars 2020 à 05:43, Tim Jones a écrit: > > Yes, each part of the terminal command separated by a space on the command > line is a separate element in the arguments array. That's good to know, thank you. > Also remember, AuthorizationMBS does not inherit the same shell environment >

Re: [MBS] Shell to AutorizationMBS question

2020-03-22 Thread Marnaud
> Le 21 mars 2020 à 22:02, Christian Schmitz a > écrit: > > In Terminal you have a lot of environment variables or user defaults, which > may not be in use for authorize, which runs as root. For the sake of checking, I tried the command in Terminal also in root (using sudo); it also worked.

Re: [MBS] Shell to AutorizationMBS question

2020-03-21 Thread Marnaud
> Le 21 mars 2020 à 19:53, Christian Schmitz a > écrit: > > Does it write an error message about wrong parameter? Good guess. So I tried launching my app using the terminal. I made the command as concise as possible, omitting all optional parameters: auth.Execute

[MBS] Shell to AutorizationMBS question

2020-03-21 Thread Marnaud
Hello, I have this shell command that I want to perform in a UI application: sudo newfs_udf -b 2048 /dev/rdisk5 By trials and errors, here's what I have currently, which doesn't work: auth=new AuthorizationMBS auitse=new AuthorizationItemSetMBS auit=new AuthorizationItemMBS

[MBS] MouseClick down works, but not up

2020-03-14 Thread Marnaud
Hello, My application tries to perform mouse clicks on Mac (trying in 10.14.6). I've tried these 2 variants: dim mb1,mb2 as boolean mb1=RemoteControlMBS.MouseClick(j,k,True) mb2=RemoteControlMBS.MouseClick(j,k,False) if mb1 and not mb2 then MessageBox "Warning! Mouse held down!" or

Re: [MBS] windows - obtain list of selected files in foreground explorer window

2020-02-14 Thread Marnaud
> Le 14 févr. 2020 à 14:07, Giulio Mastrosanti a écrit: > > what we would like to achieve is something similar to the ‘preview’ > functionality on OS X You may be able to use an OLEObject for "Shell.Application". Give it a try. ___

Re: [MBS] NSWorkspaceMBS.iconForFile way too buggy

2020-02-06 Thread Marnaud
> Le 5 févr. 2020 à 15:53, Tim Jones a écrit: > > Hi Arnaud, > > Very few non-Xojo apps have 1024x1024 icons images. The 1024 Icons in Xojo > are part of the Windows needs more than the macOS needs. For the highest > level of success, you should only get the 512 icon and then manipulate it

Re: [MBS] Crash using NSCursorMBS.currentSystemCursor

2020-02-05 Thread Marnaud
> Le 5 févr. 2020 à 15:47, Christian Schmitz a > écrit: > > No refactor. > > Just make a dummy call in app.open and then use it in the thread. Yes, that'd be too simple. I'm grabbing the cursor in a loop (it's like a screen sharing app). I'll use a timer to get the mouse cursor and share a

Re: [MBS] Crash using NSCursorMBS.currentSystemCursor

2020-02-05 Thread Marnaud
> Le 5 févr. 2020 à 15:43, Christian Schmitz a > écrit: > > I'll fix that. Great! > Please call currentSystemCursor once in main thread. My code is rather complex; it'll take time to refractor that but I guess it's still doable. > We do a bit NSWindow function there to workaround another

Re: [MBS] NSWorkspaceMBS.iconForFile way too buggy

2020-02-05 Thread Marnaud
> Le 3 févr. 2020 à 16:11, Christian Schmitz a > écrit: > > Your choice, but 1024 pixel is the maximum resolution currently for file > icons on MacOS. > > It's 512 point at 2x resolution. > Eventually Apple could go to 3x or 4x and get even more pixels. My goal is to archive files,

Re: [MBS] Crash using NSCursorMBS.currentSystemCursor

2020-02-05 Thread Marnaud
> Le 3 févr. 2020 à 16:10, Christian Schmitz a > écrit: > > Maybe run it from Terminal and see if you get an error there. Ah yes, I always forgot this way… Great, I finally got an error returned; thank you! Here's the result I got: NSInternalInconsistencyException. NSWindow drag regions

Re: [MBS] NSWorkspaceMBS.iconForFile way too buggy

2020-02-03 Thread Marnaud
> Le 23 janv. 2020 à 17:21, Marnaud a écrit: > > Christian, have you checked whether it works on your side? > On 2 of my computers (running 10.14.6), 1024 sized icons produce the same bug… Even if you haven't tried, please tell me. I don't know whether I can rely on

[MBS] Crash using NSCursorMBS.currentSystemCursor

2020-02-03 Thread Marnaud
Hello, I'm trying to get the system mouse cursor using NSCursorMBS.currentSystemCursor. On my main Mac, this call crashes (the app disappears). I don't get any crash log (no dialog telling me “app has unexpectedly quit”, no exception, nothing in the Console and, apparently, no crash log file

Re: [MBS] NSWorkspaceMBS.iconForFile way too buggy

2020-01-23 Thread Marnaud
> Le 22 janv. 2020 à 08:16, Christian Schmitz > a écrit: > >> With this method, trying with the same folder as the “old” way (which >> contains only 25 files), each call to obtain an icon takes around 4-5 >> seconds, > > Sounds like something is broken. Christian, have you checked whether

[MBS] NSWorkspaceMBS.iconForFile way too buggy

2020-01-21 Thread Marnaud
Hello, In the past, I used FolderItem.IconFamily to get icons of files/folders inside a given folder and stored that into a file (using a BinaryStream). This was really fast, used very low CPU and the resulting file were compressed; all was nice. Now that IconFamily is gone, I use the

Re: [MBS] WindowsDiskChangeMBS and WindowsDriveNotificationMBS questions

2020-01-20 Thread Marnaud
> Le 20 janv. 2020 à 17:14, Christian Schmitz > a écrit: > > Well, different layers involved. > > WindowsDriveNotificationMBS is on OS level while WindowsDiskChangeMBS is a > notification from Shell. > > Not sure if that difference ever makes a difference. > Expect maybe a Windows server

Re: [MBS] NavigationDialogMBS replacement?

2020-01-20 Thread Marnaud
> Le 20 janv. 2020 à 16:05, Christian Schmitz > a écrit: > >> Isn't it confusing for some people that the documentation lists all current >> items even when the user might be using an earlier version? > > This sounds like something we could look into, but as Xojo Inc. doesn't do it > for

Re: [MBS] NavigationDialogMBS replacement?

2020-01-18 Thread Marnaud
> Le 18 janv. 2020 à 11:27, Christian Schmitz > a écrit: > > Try NSOpenPanelMBS or OpenDialogMBS classes. Apparently, the Xojo compiler is confused by the two methods with the same name: “Files”. I have this: g=od.Files where g is a folderitem array and the compiler complains: “Not enough

Re: [MBS] NavigationDialogMBS replacement?

2020-01-18 Thread Marnaud
> Le 18 janv. 2020 à 11:27, Christian Schmitz > a écrit: > > Try NSOpenPanelMBS or OpenDialogMBS classes. Thank you. ___ mbsplugins@monkeybreadsoftware.info mailing list %(list_address)s

[MBS] NavigationDialogMBS replacement?

2020-01-18 Thread Marnaud
Hello, In a project I'm updating, I used the NavigationDialogMBS class, which seems carbon-only. However, the documentation is gone, so I have no clue what replaces it (as far as I checked, that's not mentioned anywhere). I want to allow the user to select “anything” (files, folders, disks,

Re: [MBS] [ANN] 20.0pr7

2020-01-08 Thread Marnaud
> Le 8 janv. 2020 à 15:26, Christian Schmitz a > écrit: > > The item class is fully functional on MacOS. > Just we use it currently only on Windows. So it's functional on both Mac and Windows but not useable on Mac (for now, I mean). Is a non-useable functionality not a paradox? > So maybe

Re: [MBS] [ANN] 20.0pr7

2020-01-08 Thread Marnaud
> Le 8 janv. 2020 à 15:16, Christian Schmitz a > écrit: > > It's only used on Windows currently. > But the class itself is cross platform. I don't quite understand what that means… NSAppleScriptMBS, for instance, is used on Mac only but the class compiles for Windows (it just does nothing).

Re: [MBS] [ANN] 20.0pr7

2020-01-08 Thread Marnaud
> Le 8 janv. 2020 à 14:28, Christian Schmitz a > écrit: > > Already online. Certainly happened between I asked and you replied, as I couldn't find them earlier. Google doesn't find OpenDialogItemMBS for now; I accessed the OpenDialogMBS class and saw the new properties, one of them pointing

Re: [MBS] [ANN] 20.0pr7

2020-01-08 Thread Marnaud
> Le 8 janv. 2020 à 13:09, Christian Schmitz a > écrit: > > * Changed the text file embedded in xojo plugin files to include a random > build UUID which is different each time a plugin is built as well as a Plugin > UUID which doesn't change for the same plugin. Hello, What's the purpose of

Re: [MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Marnaud
> Le 5 janv. 2020 à 17:48, Christian Schmitz a > écrit: > >> Indeed. My suggestion remains: the documentation doesn't mention MenuMBS as >> being removed nor which classe(s) replace(s) it. > > I'll change the html file on the website. Thank you.

Re: [MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Marnaud
> Le 5 janv. 2020 à 17:00, Christian Schmitz a > écrit: > >> Great, works nicely. Thank you! >> BTW: perhaps you should show MenuMBS as deprecated in the online >> documentation? > > It's not deprecated, but removed. Indeed. My suggestion remains: the documentation doesn't mention MenuMBS

Re: [MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Marnaud
> Le 5 janv. 2020 à 12:11, Christian Schmitz a > écrit: > > MenuMBS was Carbon only. > You need to switch to Cocoa classes, e.g. > NSMenuMBS, NSMenuItemMBS and NSPopUpButtonMBS. > > e.g. see > https://www.mbsplugins.de/archive/2014-12-19/Apply_fonts_to_font_PopupMenu >

[MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Marnaud
Hello, I thought I already asked that, but I can't find any proof (maybe I dreamt of it?)… So, MenuMBS no longer compiles, which, currently, breaks my code. Here's the “current” code: dim b As Boolean dim i As Integer dim m As MenuMBS dim s As String m=new MenuMBS m.Handle=MenuHandle

Re: [MBS] [ANN] 20.0pr5

2020-01-02 Thread Marnaud
> Le 2 janv. 2020 à 09:30, Jean-Pierre Bergeron a > écrit: > > Hello, > > Is the a way MBS could auto-update itself? > > Thanks You could certainly make a Xojo app for that. ___ mbsplugins@monkeybreadsoftware.info mailing list %(list_address)s

Re: [MBS] Assigning a custom NSTextViewMBS to a TextArea

2019-12-04 Thread Marnaud
> Le 4 déc. 2019 à 19:00, Christian Schmitz a > écrit: > > You can't do that. > > The events only work for new NSTextViewMBS object created with the plugin. So an abstract NSTextViewMBS object can be created, which includes these events, but it's not possible to link that NSTextViewMBS

Re: [MBS] Assigning a custom NSTextViewMBS to a TextArea

2019-12-04 Thread Marnaud
> Le 4 déc. 2019 à 18:51, Christian Schmitz a > écrit: > > Sorry, you can't assign it. > MBS Plugins just define a function to look for the NSTextViewMBS object > belonging to a TextArea. > > You may have more luck with using NSNotificationMBS with the text area to > look for

[MBS] Assigning a custom NSTextViewMBS to a TextArea

2019-12-04 Thread Marnaud
Hello, I've created a new NSTextViewMBS class for trying something. I need it to replace the native TextArea's text view. I'm trying this in the open event of my text area subclass: dim tv As CTVTest 'Also tried with NSTextViewMBS tv=new CTVTest self.NSTextViewMBS=tv CTVTest is a subclass of

[MBS] AddHandler with NSTextViewMBS.ShouldChangeTextInRange question

2019-12-03 Thread Marnaud
Hello, I have this code: AddHandler me.NSTextViewMBS.shouldChangeTextInRange,AddressOf ShouldChangeTextInRange in a TextArea's open event and a method: ShouldChangeTextInRange(tv As NSTextViewMBS, Range As NSRangeMBS, Replacement As String) As Boolean which, for now, just returns true. In my

[MBS] replaceRange available in the plugin?

2019-12-01 Thread Marnaud
Hello, I need to use this declare in a Mac desktop project: textView replaceRange:textView.selectedTextRange withText:replacementText I tried with declares inside Xojo, but I always get crashes. Is this function available in the MBS plugin? ___

[MBS] systemFontOfSize question

2019-10-23 Thread Marnaud
Greetings, I'm trying to get the default font for the “system” font. I'm trying this: DefaultTextSize=NSFontMBS.systemFontSize dim TheFont as NSFontMBS=NSFontMBS.systemFontOfSize(DefaultTextSize) “TheFont”'s properties tell me things such as “System” or “.AppleSystemUIFont” (for which I can't

[MBS] Something's unclear with NSFileManagerMBS.DefaultManager

2019-10-04 Thread Marnaud
Hello, For NSFileManagerMBS.DefaultManager, the documentation states: “This is just one global property, so we only create instance on first call and than return the same instance again.” However, in order to access NSFileManagerMBS.DefaultManager, one has to first create a new object of type

Re: [MBS] PermissionsMBS.Access and 64 bits

2019-10-03 Thread Marnaud
> The old AppleShare permissions are still available via old API, but it may be > better to move to POSIX permissions. Ah, so those old permissions are AppleShare permissions. That's one thing I didn't know. > e.g. > > Dim file As FolderItem = SpecialFolder.Desktop.Child("test.rtf") > Dim

[MBS] PermissionsMBS.Access and 64 bits

2019-10-03 Thread Marnaud
Hello, PermissionsMBS.Access is only set if using the “older” API; older API is available only in 32 bit. I'm making an app where I want to check user/group/other permissions; it is a 64 bit app. Should I rely on the shell? On the same subject, the documentation doesn't look clear to me, as to

Re: [MBS] Images representations of icon files

2019-08-21 Thread Marnaud
Sorry, a third question comes to mind: 3: the representations show sizes up to 2048x2048 although, on the file I'm trying (another Xojo app), I've only defined icons up to 128x128 (it's an old one). Of course, when I view the image at that size, it's scaled way too much, since it's not really a

[MBS] Images representations of icon files

2019-08-21 Thread Marnaud
Hello, I'm replacing the IconFamilyMBS class with the new NSWorkspace.IconForFile function. In the old way, I used the IconFamilyMBS.data to write all icons of a given item to a binary stream; when reading the file, I'd set the read data back to an IconFamilyMBS.data property, so all the icon

Re: [MBS] [ANN] 19.4pr1

2019-08-08 Thread Marnaud
> Le 8 août 2019 à 20:30, Christian Schmitz a > écrit: > > * Deprecated CarbonEventsScrapMBS, CarbonApplicationEventsMBS and > CarbonWindowsEventsMBS classes. This is rather surprising and annoying… CarbonApplicationEventsMBS permits to draw to the dock icon, know when an app is

Re: [MBS] NSWorkspaceMBS.iconForFile

2019-07-25 Thread Marnaud
> Le 25 juil. 2019 à 06:49, Garth Hjelte a écrit: > > (Please don't laugh that I'm using MBS 16.4) > > This is good code that works for me for extracting a icon from a FolderItem. > The context here is extracting the icons from the Volume() function. > > This is an example function. > >

Re: [MBS] What is the replacement of DisableScreenUpdatesMBS?

2018-06-09 Thread Marnaud
> Le 9 juin 2018 à 19:09 du soir, Christian Schmitz > a écrit: > > How about disableScreenUpdatesUntilFlush method? Thanks, but I'm not getting the same result as in 32bit. My goal is to maximize the window instead of zooming it (I mean, not covering the whole screen, but sizing it to show

[MBS] What is the replacement of DisableScreenUpdatesMBS?

2018-06-09 Thread Marnaud
Hello, In 64bit apps, I get an exception when I use DisableScreenUpdatesMBS: “Not available for 64-bit. Please use NSWindowMBS class instead.” Now, where in NSWindowMBS do I find the DisableScreenUpdates equivalent? ___

[MBS] What replaces MacNotificationMBS?

2018-05-05 Thread Marnaud
Hello, I'm using the MacNotificationMBS class, however it's only for 32 bits Carbon. How can I make my icon bouncing in the Dock in 64 bits to request the user's attention? ___ Mbsplugins_monkeybreadsoftware.info mailing list

Re: [MBS] PictureToPNGStringMBS not working on my Linux system

2018-04-04 Thread Marnaud
Le 4 avr. 2018 à 16:18 du soir, Christian Schmitz a écrit: > >> Ok, the Nautilus search gave better results than the Terminal one. I finally >> found these files: >> libcairo.so.2 in /usr/lib/i386-linux-gnu >> libcairo.so.2 in /usr/lib/x86_64-linux-gnu > > Let

Re: [MBS] PictureToPNGStringMBS not working on my Linux system

2018-04-04 Thread Marnaud
Le 4 avr. 2018 à 15:54 du soir, Christian Schmitz a écrit: > Yes. So where is the file on the disk? Ok, the Nautilus search gave better results than the Terminal one. I finally found these files: libcairo.so.2 in /usr/lib/i386-linux-gnu libcairo.so.2 in

Re: [MBS] PictureToPNGStringMBS not working on my Linux system

2018-04-04 Thread Marnaud
Le 3 avr. 2018 à 14:19 du soir, Christian Schmitz a écrit: > > Than please install Cairo library. In the software manager, the thing that looks most like Cairo is named “Libcairo2” and is already installed. Is it this one you asked me to install?

Re: [MBS] PictureToPNGStringMBS not working on my Linux system

2018-04-04 Thread Marnaud
Le 4 avr. 2018 à 11:13 du matin, Christian Schmitz a écrit: > > Strange that Xojo works without Cairo? I'm remote debugging, so the IDE is not running. Still, the remote debugger and my app launch without Cairo. > Well, it's a system library and you should not

Re: [MBS] PictureToPNGStringMBS not working on my Linux system

2018-04-04 Thread Marnaud
> Le 3 avr. 2018 à 14:19 du soir, Christian Schmitz > a écrit: > >> I'm actually failing to find it; could it be not installed? Linux isn't the >> system I'm most comfortable with. >> (I tried the “find” terminal command to search for it) > > Than please

Re: [MBS] PictureToPNGStringMBS not working on my Linux system

2018-04-03 Thread Marnaud
Le 2 avr. 2018 à 20:33 du soir, Christian Schmitz a écrit: > >> Running on Linux Mint 18.1 64-bit, Cinnamon 3.2.7., PictureToPNGStringMBS >> returns an empty string. > > Well, just this functions or also other functions? > Like LogoMBS() works? You're right:

[MBS] PictureToPNGStringMBS not working on my Linux system

2018-04-02 Thread Marnaud
Hello. I have this test code which works fine on Mac but fails on my Linux installation: dim p As Picture dim q As Picture dim s As String p=new Picture(32,32,32) p.Graphics.DrawOval 0,0,32,32 s=PictureToPNGStringMBS(p) q=PNGStringToPictureMBS(s) Break Running on Linux Mint 18.1 64-bit,

Re: [MBS] NavigationDialogMBS.CreateAskSaveChangesDialog not working in 64 bits?

2018-03-02 Thread Marnaud
Le 1 mars 2018 à 22:10 du soir, Christian Schmitz a écrit: > > > Well, I think only NSDocument stuff would ask that. > So please use messageDialog class for this. Ok, I'm already using this on Windows and Linux. The dialog I'm after was a good way to ask for

Re: [MBS] NavigationDialogMBS.CreateAskSaveChangesDialog not working in 64 bits?

2018-03-01 Thread Marnaud
Le 1 mars 2018 à 17:25 du soir, Christian Schmitz a écrit: > > This is 32-bit only Carbon. Please move to OpenDialogMBS or NSOpenPanelMBS. Thanks, but both don’t seem to provide the dialog I’m after (the “Ask for save changes?” dialog). Is it gone with 64-bit

[MBS] NavigationDialogMBS.CreateAskSaveChangesDialog not working in 64 bits?

2018-03-01 Thread Marnaud
Hello, I’m changing one of my apps to 64 bits and I am having a problem with the following simplified code: dim n as new NavigationDialogMBS dim o as new NavigationDialogOptionsMBS n.Options=o n.CreateAskSaveChangesDialog(True) n.ShowDialog It runs fine in 32 bits, but nothing happens in 64

Re: [MBS] Graphics.FillArcMBS and Picture.PicHandleDataMBS?

2018-02-25 Thread Marnaud
À 16:32 du soir, Christian Schmitz a écrit: > > Graphics.FillArcMBS depended on QuickDraw and as QuickDraw got removed, we > also removed this function. > You can still do arcs with CGContextMBS arc methods. Thanks, I’ll try that. > Picture.PicHandleDataMBS is

[MBS] Graphics.FillArcMBS and Picture.PicHandleDataMBS?

2018-02-24 Thread Marnaud
Hello, I’m updating an old project and have trouble with Graphics.FillArcMBS and Picture.PicHandleDataMBS. They are not known to the IDE and the MBS documentation doesn’t mention them anymore. Are they gone? What replaces them? ___

Re: [MBS] .ico and autorun.inf with MBS

2017-08-11 Thread Marnaud
Le 7 août 2017 à 15:44 du soir, Jean-Luc Arnaud a écrit: > My main need, of course, is converting a picture (.bmp, .jpeg or .png) > into a .ico file. Hello Jean-Luc, For what it’s worth, the english version of Wikipedia has a great article about the ico format (the

Re: [MBS] NSMenuItem.Enabled=False not working?

2017-08-01 Thread Marnaud
Le 31 juil. 2017 à 20:40 du soir, Christian Schmitz a écrit: > Is NSMenuMBS configured to always enable maybe? You’re right. I added “menu.autoenablesItems=False” and the item disables. Thank you. ___

[MBS] NSMenuItem.Enabled=False not working?

2017-07-31 Thread Marnaud
Hello, I have this code in an open event of a PopupMenu control: dim pb as NSPopUpButtonMBS=me.NSPopUpButtonMBS dim menu as NSMenuMBS=pb.menu dim MenuItem As NSMenuItemMBS for i as integer=0 to menu.numberOfItems-1 MenuItem=menu.Item(i) if MenuItem<>nil and MenuItem.Title="Test" then

Re: [MBS] Getting "childs" processes

2017-06-29 Thread Marnaud
Le 28 juin 2017 à 12:51 du soir, Jean-Luc Arnaud a écrit: > Hi all MBS users, > > I'm using ProcessMBS class in order to kill some processes. > > Usually, when a process is killed, the processes it may have launched > are killed, too. > > Unfortunately, this does

Re: [MBS] RegisterMBSPlugin method not recognised?

2016-12-01 Thread Marnaud
Le 1 déc. 2016 à 16:37, Marnaud <anic...@mac.com> a écrit: > It’s with the MBS plugin 13.2 version. Sorry for the noise, I found the answer myself. I had the wrong plugin version installed, which doesn’t recognise the newest registration p

[MBS] RegisterMBSPlugin method not recognised?

2016-12-01 Thread Marnaud
Hello, The method to register the MBS plugin does not work, for me, since Xojo 2016r1.1; I'm getting this error: There is more than one item with this name and it's not clear to which this refers. It used to work before. This is with the new registration scheme. It's with the MBS plugin

Re: [MBS] More precise question: what can make ScreenShotDisplayMBS to return a black picture?

2016-09-12 Thread Marnaud
Le 12 sept. 2016 à 15:09, Christian Schmitz a écrit: > Let me look for an issue and see if I can find something. Thanks; that would be great. ___ Mbsplugins_monkeybreadsoftware.info mailing list

[MBS] More precise question: what can make ScreenShotDisplayMBS to return a black picture?

2016-09-12 Thread Marnaud
Hello, I recently talked about a problem with ScreenShotDisplayMBS. I have a more precise description of the problem: after a certain amount of time (e.g. around 30 minutes if I call it twice per second), the returned picture is black (I think I said it was a nil picture, once; that's wrong).

Re: [MBS] Getting blank screenshots and out of memory exceptions

2016-08-23 Thread Marnaud
Le 23 août 2016 à 19:56, Christian Schmitz a écrit: > Well, make an app which does whatever you think leaks a 1000 times. > And press button to trigger this a couple of times and see if memory usage > goes up. Thanks. I'd do that if I knew which function to

[MBS] Getting blank screenshots and out of memory exceptions

2016-08-23 Thread Marnaud
Hello, I'm using several functions to transmit pictures from one computer to another. Namely, I'm using ScreenshotDisplayMBS and PictureToPNGStringMBS. After around one hour of use, I start getting blank (black) pictures with ScreenshotDisplayMBS. At this point, if I call another method which

Re: [MBS] support utf8 on your server please

2016-03-28 Thread Marnaud
Le 28 mars 2016 à 14:59, Aaron Andrew Hunt a écrit: > I've mentioned this before: I really wish you would fix your server so > so utf8 works correctly in your mailing list. It looks especially bad > for a computer programmer. Well, I don't have the same problem

Re: [MBS] How to compare pictures?

2016-02-14 Thread Marnaud
> HI, > > actually there are APIs for CoreGraphics to be notified if a part of the > screen changed. > > So we could get an event when some rectangle areas on screen are updated. > And since 10.8 we have even a newer API which gives you the picture plus the > rectangles. > This way we could

Re: [MBS] How to compare pictures?

2016-02-13 Thread Marnaud
Le 11 févr. 2016 à 18:13, Christian Schmitz a écrit: > you can do a pixel by pixel comparison with RGBSurface and see what you get. I have several doubts about it; perhaps you have better advices and experience that I have? •Xojo is slow with pictures; hoping

Re: [MBS] How to compare pictures?

2016-02-13 Thread Marnaud
Le 13 févr. 2016 à 21:10, Christian Schmitz a écrit: > The idea was that you write a compare so I see how you like them to be > compared. :-) You mean “a compare method”, right? (just ensuring I understand the phrase) Well, I think I'll start writing that

[MBS] How to compare pictures?

2016-02-11 Thread Marnaud
Hello, I have an application that transmits screenshots over the network. It kind of works, but that's slow (I'm getting a 4 pictures per second rate, at best). I'd like to do like most other apps do: compare what changed on screen between two "frames" and only send a rectangle or pixels of

Re: [MBS] Selection rectangle in a canvas

2016-02-01 Thread Marnaud
Le 1 févr. 2016 à 16:03, Jean-Luc Arnaud a écrit: > Arnaud, > > Except some minor corrections (missing parenthesis) I had to do, your > code works fine: congratulation! > The main mistake was in the Paint event, where you should replace: > > g.DrawRect >

Re: [MBS] Selection rectangle in a canvas

2016-01-30 Thread Marnaud
> In you canvas (where everything will be done, unless stated), add these > properties: Selection() as integer, ClickedCorner As Integer=-1 > When Selection is an empty array, it means there's no selection; else, we > expect it to have a size of 7 (0-7), with x and y for each bound. >

[MBS] Error code -60031 with AuthorizationMBS

2016-01-09 Thread Marnaud
Hello, I'm getting a -60031 error when using the AuthorizationMBS class; unsurprisingly, it's the error which has the less meaning among all of them. However, I don't understand, because everything seems correct. Here's the bit of code: //f1 is the target folder for the first move

Re: [MBS] Error code -60031 with AuthorizationMBS

2016-01-09 Thread Marnaud
Ok, I found it. Chmod is located in /usr/sbin… Sorry for the noise. ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Questions about RemoteControlMBS and the way to catch some system keys

2015-11-28 Thread Marnaud
Le 28 nov. 2015 à 9:53, Christian Schmitz a écrit: >> I've found one website which suggests to simulate some kind of mouse dragged >> event, with this code: >> [NSEvent addGlobalMonitorForEventsMatchingMask:(NSMouseMovedMask) >> handler:^(NSEvent *event) > >

Re: [MBS] Questions about RemoteControlMBS and the way to catch some system keys

2015-11-28 Thread Marnaud
Le 17 oct. 2015 à 17:13, Christian Schmitz a écrit: >> Anyway, the biggest problem I'm having on the Mac side is with the mouse. I >> can move the mouse remotely (I see it moving as well on the remote >> computer), but it's like if the applications won't notice

Re: [MBS] An Epic Xojo Black Friday Sale!

2015-11-27 Thread Marnaud
Le 27 nov. 2015 à 9:35, Christian Schmitz a écrit: > MBS Renewals are not discounted. They already sell for 50% of a new license > price. > Xojo updates on the other side are sold for 100% of the new license price, so > 20% discount gets you to 80%, which is

Re: [MBS] Again a few questions about remote controlling

2015-11-22 Thread Marnaud
Le 20 nov. 2015 à 12:18, Jean-Luc Arnaud a écrit: > Not an actual answer, rather an idea... > As you know, Mac OS is able to deal with activ coins, where the user can > set up a screen sleep. > So, it should be, somewhere in frameworks, some code doing that. >

Re: [MBS] Again a few questions about remote controlling

2015-11-20 Thread Marnaud
Le 19 nov. 2015 à 13:40, Christian Schmitz a écrit: > Well, QueryStandby is older event (Windows XP maybe). > QuerySuspend is newer event, I think. Thanks. So it's reasonable to think I can rely on the QuerySuspend event alone. My early tests suggests I don't

[MBS] Again a few questions about remote controlling

2015-11-19 Thread Marnaud
Hello, Remote controlling is a vast subject and I'm occasionally encountering some problems; I'm grouping my questions to disturb as less as I can. First, I don't understand the difference between the QuerySuspend and QueryStandby events of the WindowsPowerState class. How is suspending

Re: [MBS] Questions about RemoteControlMBS and the way to catch some system keys

2015-10-18 Thread Marnaud
Le 18 oct. 2015 à 21:10, Christian Schmitz a écrit: > Currently I have none. Sorry. Well, Command-Tab support is meaningless, but the lack of support for arrow keys on Win32 renders the whole app almost useless. For the delete key, I could send Right arrow

Re: [MBS] Questions about RemoteControlMBS and the way to catch some system keys

2015-10-18 Thread Marnaud
Le 18 oct. 2015 à 20:59, Christian Schmitz a écrit: > I may not be sure if cursor and other special keys are included in the > character translation tables. > > Good question. In other words, the problems I'm having don't have a solution, right?

Re: [MBS] Questions about RemoteControlMBS and the way to catch some system keys

2015-10-18 Thread Marnaud
Le 17 oct. 2015 à 17:13, Christian Schmitz a écrit: >> work (arrow keys, or delete, for instance, but there are numerous failing >> keys). > > Well, for those you may just go with hard coding the combinations. Yes, but for that, I have to find the code. I

Re: [MBS] [ANN] 15.3pr5

2015-09-30 Thread Marnaud
Le 28 sept. 2015 à 20:15, Christian Schmitz a écrit: > * Added CGDisplayMBS CreateImageAsync. Hello, I'm assuming this is a way to get a screen shot asynchronously, am I right? If yes, it's a good news and I thank you for that. Would a similar concept be

Re: [MBS] [ANN] 15.3pr5

2015-09-30 Thread Marnaud
Le 30 sept. 2015 à 16:39, Christian Schmitz a écrit: > Not sure how soon I can look into that. Well, I can work on other parts on my app for now; time is not a problem. > The key here is that I can avoid using a xojo picture at all, so I can run it > on a

Re: [MBS] ScreenshotDisplayMBS and PictureToJPEGStringMBS slow?

2015-09-26 Thread Marnaud
Le 25 sept. 2015 à 19:59, Christian Schmitz a écrit: > Did you measure times? Well, my app uses two threads to make things more fluent, so measuring linearly is not easy. > For me this takes 0.5 seconds per image. Which is indeed too long for my purposes. >

Re: [MBS] ScreenshotDisplayMBS and PictureToJPEGStringMBS slow?

2015-09-26 Thread Marnaud
Le 26 sept. 2015 à 22:14, Christian Schmitz a écrit: > I'll see what I can do there. Thank you, it would be nice. ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info

[MBS] ScreenshotDisplayMBS and PictureToJPEGStringMBS slow?

2015-09-25 Thread Marnaud
Hello, I'm getting pictures from one computer to another one using ScreenshotDisplayMBS and PictureToJPEGStringMBS through local network. The timer which asks for this has a period of 100 (so I could get up to 10 pictures per seconds). However, even with a JPEG quality of 1, I'm receiving the

Re: [MBS] Windows Calendar

2015-09-15 Thread Marnaud
Le 15 sept. 2015 à 17:55, Jean-Luc Arnaud a écrit: > Hi all, > > Using NSCalendarMBS, it's easy to get a Calendar on Mac. > > How could I get one on Windows? There's an example for that in the Windows Functionality Suite. If you can't find it, I can email it to you.

Re: [MBS] Error -1 with MacFileOperationMBS

2015-03-04 Thread Marnaud
Le 4 mars 2015 à 18:00, Christian Schmitz supp...@monkeybreadsoftware.de a écrit: you can query status at any time using status method: Status as MacFileOperationStatusMBS Ah, yes, it's written in the middle of other members of the class; I didn't see it. Thanks. The timer approach would

Re: [MBS] Error -1 with MacFileOperationMBS

2015-03-04 Thread Marnaud
Le 4 mars 2015 à 10:15, Christian Schmitz supp...@monkeybreadsoftware.de a écrit: Well, first there can be bugs in the system functions or my plugin. That'd be something to sort out. If the object is not kept alive long enough, the destructor will shutdown the event properly. Correct;

  1   2   3   >