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:
>> 
>> de=new DREraseMBS(Device)
> 
> That is for erasing DVD-RW disks.

Ah, OK. What's the class for my need?

Thank you. Your answer was really fast, as often; impressed.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 function expects 
the shell or native path.
I confirm all is working.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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.createSymbolicLink, if I 
>>> remember correctly.
>> 
>> Thanks. I made the change:
>> 
>> if not NSFileManagerMBS.defaultManager.createSymbolicLink(f,s,ne) then 
>> Return 17
> 
> Either both parameters f and s are both string or folderitem.

You're right; one was a folderitem and the other was a string. Since both were 
valid (but by pair), I didn't compared them…
Thank you; problem solved.

Just one more question, please: should I pass a NativePath or a ShellPath?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 missing matches (and the “expected boolean, got 
in32” error).
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 signatures.”. I triple-checked: s is a string, f 
is a folderitem; like the documentation states.


Then I tried with an instance:
dim ne As NSErrorMBS
dim nf As new NSFileManagerMBS

s=
if not nf.createSymbolicLink(f,s,ne) then Return 17

This time, Xojo is complaining twice: same as above and “Type mismatch error. 
Expected Boolean, but got Int32”. The documentation clearly tells the returned 
value is a boolean.


For the sake of checking, I tried with an int32:
dim ne As NSErrorMBS
dim nf As new NSFileManagerMBS

s=
i=nf.createSymbolicLink(f,s,ne)
if i<>0 then Return 17

Same error about not matching any of the available signatures.

What is the proper syntax for this function, then?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 about the ones not provided by Xojo, like the “Audio” or 
“PreferencePanes” folders.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 currently and nsc 
is the “main” (target) screen)

“nsc” is simply defined as this: nsc=NSScreenMBS.mainScreen

It appears that nsc.frame.MinY equals 56. On that screen, there's only the menu 
bar at the top (the Dock is indeed on that screen, but at the bottom) so I 
don't understand where this 56 comes from.

Is that a bug or an expected value somehow?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 
> that you have in a Terminal.  This is why you had to use the full path.

I understand the principle (the missing part being “which environment variables 
are involved, leading to these kind of problems?”, especially since I can't 
seem to find a returned error).
Still wondering what is the “stream” parameter and how to use it; it may be the 
clue I'm missing. I think I could open this stream and read using the function 
made for this (whose name is not in my memory just now), but it requires to 
pass the wanted amount of characters to read; what if I don't know how big the 
stream is going to be? (what is a “correct” guess?).

>  But, why aren't you just using hdiutil?

Looks like this is about disk images only. Actually, I want to format a 
DVD-RAM, and the device that uses it (a DVD recorder for TV broadcasts) is 
picky about the DVD format (it has built-in formatting functions, but cannot 
recognises non-MBR-formatted disks or “random” formats). I haven't checked all 
the possible combinations, but the script I (hardly) found on the Internet 
proved to work; the key being, I must already format the DVD as udf (don't know 
whether this is mandatory; in my testings, it is).

Thank you.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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.
The newfs_udf executable was installed with the OS and I'm not aware I 
changed/installed something that would have altered environment variables for 
it.

So, what must be done to make it working with Autorize or, at least, know 
what's wrong?
BTW: what's the stream option made for in AutorizationMBS?

> In Console unless quoted, it's space.

So even when "-b 2048" means "value of parameter «-b» equals 2048”, they are 
still separated parameters? Weird…

Thank you.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 
"/System/Library/Filesystems/udf.fs/Contents/Resources/newfs_udf",array("/dev/rdisk5")

I am getting this output:
newfs_udf: No such file or directory
Unknown media size

I probably can fix the media size error by passing a parameter, but I guess 
it'd be automatically set if the first error is fixed.

But, if I put this in the terminal (what I expect to be the same as the Execute 
statement above):
/System/Library/Filesystems/udf.fs/Contents/Resources/newfs_udf /dev/rdisk5

Then it works…

How are both forms different?

> I'd try this:
> 
> array("-b", "2048",disk)
> 
> Because -b and 2048 are two parameters.

Actually, I hesitate between both (since I can't make it working yet in a short 
syntax, I can't find the correct one). What makes me wondering is “2048” is the 
value of “-b” (the block size). What defines separate parameters: values 
separated by space or parameters with their value?

Thanks.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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
auit.Name="com.amug.MyUtilities.CreateUDFDisk"
auitse.Append auit

Auth.KeepRights=True
if auth.NewAuthorization(nil,0) then
  auth.Authorize(auitse,3)
  if auth.LastError=0 then
disk="/dev/r"+dname 'dname being like "disk5"
auth.Execute 
"/System/Library/Filesystems/udf.fs/Contents/Resources/newfs_udf",array("-b 
2048",disk)
MsgBox str(Auth.LastError)
  end if
end if

All the “if” statements behave as expected and Auth.LastError shows 0, but yet, 
nothing happens. I don't seem to find a way to get the error code returned by 
the called command (all error properties I can find in the used objects are 
about the authentication itself).

If I copy/paste the executable path to the terminal, it's recognised (I get the 
help screen), so the path isn't the problem. I also tried using only the 
executable name, but I got the result “not found”.

Any idea what's wrong?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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

mb1=RemoteControlMBS.MacMouseClick(j,k,True,True)
mb2=RemoteControlMBS.MacMouseClick(j,k,True,False)

if mb1 and not mb2 then MessageBox "Warning! Mouse held down!"

With both versions, I always get the MessageBox shown, which means the mouse 
was down successfully but failed to be released.
Further, occasionally (but far from always; I'd say around 1 out of 5 times), 
my Mac is indeed stuck (the mouse can be moved on the screen, albeit the cursor 
won't change, and no input can be performed (mouse clicks, keyboard presses, 
…)). In this case, my only option is to send a new click (from another 
computer) to release the mouse.

Is there a way to know why releasing the mouse's button failed? What else may I 
try?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 as 
> needed for other sizes (Xojo's scaling does a very good job on this).
> 
> HTH,
> Tim

Hi Tim,

Thank you! Your answer helps me a lot.

Arnaud
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 
property between the timer and my thread's loop. As always with such a 
technique, race conditions may arise, I'll see.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 bug.
> But I can disable that if called on a thread.

Ok. Thank you!
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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, including their icons, so I'd like to grab all 
icon sizes. In Xojo, we put 1024, 512, 128, 64 (and so on) icons so I've made 
the assumption that these are the supported sizes on Mac OS. What I think 
doesn't fit is the relation between fixed-defined icon sizes (set) and any icon 
sizes (get). The former apparently has a set of valid sizes while the latter 
can be any number. It's even possible (and maybe the reason it's slow and 
wrongly returns hundred of megabytes of data per picture) that the given files 
didn't have a 1024 icon set and I'm retrieving them, not having a way to know 
if they exist in the first place.

It's hard to believe there's nothing to know whether a given icon size exists 
from when it has been pasted/generated. I'm (we are) missing something, right?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 should only be invalidated on the Main Thread!
Please report to the application developer.
2020-02-05 15:27:17.234 RemoteObserverServer[12740:412035] callStackSymbols: (
0   CoreFoundation  0x7fff3f7f9b79 
__exceptionPreprocess + 256
1   libobjc.A.dylib 0x7fff69f6d3c6 
objc_exception_throw + 48
2   CoreFoundation  0x7fff3f8139cd 
-[NSException raise] + 9
3   AppKit  0x7fff3cdab5ca 
-[NSWindow(NSWindow_Theme) 
_postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
4   AppKit  0x7fff3cda89f7 -[NSWindow 
_initContent:styleMask:backing:defer:contentView:] + 1479
5   AppKit  0x7fff3cda842a -[NSWindow 
initWithContentRect:styleMask:backing:defer:] + 45
6   AppKit  0x7fff3d609753 -[NSWindow 
init] + 75
7   MBS_MacCocoa_NSCursor_Plugin_20159.dylib 0x000111dde747 
_ZL19currentSystemCursorv + 215
8   RemoteObserverServer0x00010d93f4a8 
NSCursorMBS.!currentSystemCursor%o% + 40
9   RemoteObserverServer0x00010d9dee64 
CThreadPictureComputation.GetMacCursor%o%o + 
1796
10  RemoteObserverServer0x00010d9d78d3 
CThreadPictureComputation.Event_Run%%o + 31155
11  XojoFramework   0x00010e17f674 threadRun + 
695
12  XojoFramework   0x00010e038da5 
_ZN4xojo11SpawnThreadEmPFvPvES0_ + 457
13  libsystem_pthread.dylib 0x7fff6b9262eb 
_pthread_body + 126
14  libsystem_pthread.dylib 0x7fff6b929249 
_pthread_start + 66
15  libsystem_pthread.dylib 0x7fff6b92540d thread_start 
+ 13

So it's not possible to grab the mouse cursor from a non-main thread, or it's a 
problem with my system? I don't get any crash with the same app on another 
computer…
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 
1024 icons. Are they important?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 generated).
How may I diagnose the problem?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 it works on your side?
On 2 of my computers (running 10.14.6), 1024 sized icons produce the same bug…
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 NSWorkspace way:

if Item=nil then Return nil

dim n As NSImageMBS=NSWorkspaceMBS.iconForFile(Item)
n.setSize Size,Size
Return n.CopyPictureWithMask

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, meaning 
around 30 seconds for all the sizes I take (with IconFamily, I didn't have to 
grab several “arbitrary” sizes to guess I saved all icons); 10 minutes were 
taken to treat the entire folder of 25 files. The CPU ran as 200% constantly 
for IconAgent and the resulting file is 234 Mb (the original folder being 16.8 
Mb).
Clearly, the NSWorkspace way isn't the good one for my needs (is that just used 
to show a single, eventual, icon to the user?). Which other method would work?

Thanks.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 without GUI.

Thanks, makes sense.
Then, on the other hand, WindowsDiskChangeMBS will never have something more 
interesting than WindowsDriveNotificationMBS, right?

And, for my other question, does “media” stand for “volume” and “drive” for 
“disk”, in windows-to-mac translation for this class?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 their versions, I don't expect people expect it in general.

For Xojo, since I sometimes use older versions, I usually choose the offline 
(local) version. Since the online version is always for the latest IDE and it 
requires an Internet connection (often not getting an immediate reply, also), I 
don't see much reason to connect around the world to read something unrelated 
to my product if the local version is better.

> You can always refer to the PDF or html files of the specific version.

For MBS, there can't be a “built-in” window like Xojo (at least, I guess). If 
it were the case, I'd happily browse a MBS local documentation from within the 
IDE. However, looking for the MBS documentation file on my hard disks is harder 
(I actually have never bothered with other folders than the one containing the 
plugin files).

>> Indeed, both are useful. If “Files” was a property rather than a method, I 
>> guess the former version (“Files(index as integer) as FolderItem”) would be 
>> useless (one would do “f=o.Files(0)” with the array); only one version would 
>> be needed, then. I'm wrong?
> 
> In plugin interface you can't have properties with arrays inside. Sorry.

Ah, I always wondered why various calls in your plugin were made that way 
(using methods). I thought it was just your choice, a preference. Glad I was 
wrong.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 arguments: missing Integer value for parameter 
"index"”.
I haven't yet installed the most plugin version (currently using the one just 
before, so if this has been fixed in the last release, please disregard.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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, etc.), 
with multiple selection.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 I do use it in future For Mac, too.
> Not yet sure.

Interesting. What would it provide? Currently, I'm seeing it as a way to 
represent virtual files selected in an open dialog. Such “virtual files” being 
a Windows-only nonsense, how would that translate on the Mac side?
Thanks.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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). How is that different to any class that's used 
only on one OS like OpenDialogItemMBS? Both examples are cross platforms 
(compile under all systems) and work only on one.
Confused…
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 to the 
OpenDialogItemMBS class.
It's currently a Windows-only class, but marked as Mac: yes, Linux: yes in the 
headers.

Thanks.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 those two UUID?

> * Added OpenDialogItemMBS class.
> * Added Items and Files methods to OpenDialogMBS class.

I can't wait to see documentation for these. For now, wondering what they do…

Thanks.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 as 
being removed nor which classe(s) replace(s) it.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 
> 
Great, works nicely. Thank you!
BTW: perhaps you should show MenuMBS as deprecated in the online documentation? 
I misleadingly didn't see it anywhere.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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

i=PMPropertiesHandles.IndexOf(MenuHandle) 'Check if the passed handle is in my 
array; this array contains the menu(s) handle I want to monitor.
if i>-1 then
  for i=1 to m.Count
s=m.Text(i)
b=s<>CstStrConcerningFileTrack
if not b then
  m.DisableAllMenuItems
  m.Enabled(i)=False
  m.Bold(i)=True
  m.Underline(i)=True
end if
  next
end if

In short, this code disables a particular menu item inside a popup menu.
What's the proper way to do the same without using MenuMBS?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 object to an actual 
control? How can these events be triggered if the NSTextView object doesn't 
belong to an existing control?
Or… Could I add a NSTextViewMBS to a Xojo window which would show as a 
“TextArea”?
Thanks.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 notifications. 

Thanks for your answer.
Then, another question arises: the NSTextViewMBS has 2 events; I'm interested 
in handling one (namely, shouldChangeTextInRange).
If I can't assign a custom subclass to a TextArea and “AddHandler 
me.NSTextViewMBS.shouldChangeTextInRange” doesn't work either (see my previous 
thread), how is one supposed to use the NSTextViewMBS events (which, surely, 
exist because they can be used)?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 NSTextViewMBS.

The IDE tells me this:
CEditingTextArea.Open, line 8
There is more than one method with this name but this does not match any of the 
available signatures.
self.NSTextViewMBS=tv

How should I proceed?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 TextArea's close event, there's this:
RemoveHandler self.NSTextViewMBS.shouldChangeTextInRange,AddressOf 
ShouldChangeTextInRange


I get syntax errors with this code, at the AddHandler and RemoveHandler lines.

If I change it like this:
dim tv As NSTextViewMBS

tv=me.NSTextViewMBS
AddHandler tv.shouldChangeTextInRange,AddressOf ShouldChangeTextInRange

and leave the close event in a single line, the app launches fine and the 
AddHandler is executed. However, my custom method won't execute and, when 
closing, the RemoveHandler call triggers an exception stating no AddHandler has 
been performed prior to removing it (so the AddHandler statement is, in fact, 
not done).

What's wrong here?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 find any information about, on the Internet). Since 
systemFontOfSize is expected to return the system font, what's the point of 
this function if it returns a “pseudo” font that tells me nothing more?

The default font has already changed between Mac OS 10.11 and 10.14 and may 
change later as well. Yet Apple doesn't provide a way to get its name?
But… how does Xojo translates “System” to the corresponding font in the first 
place? There seems to be a way…

I've also found this: 
https://developer.apple.com/documentation/uikit/uifont/1619030-preferredfontfortextstyle?language=objc
 

But my application fails to start when I try to convert this as a declare, no 
matter how I try…

How can I do that?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 NSFileManagerMBS, so the second object is already 
created. What am I missing?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 fileManager As New NSFileManagerMBS
> 
> dim error as NSErrorMBS
> Dim Values As Dictionary = fileManager.attributesOfItemAtPath(file, error)
> Dim Permissions As Integer = Values.Value(fileManager.NSFilePosixPermissions)
> 
> MsgBox "POSIX Permissions: "+oct(Permissions)
> 
> MsgBox "Owner: "+_
> values.Value(fileManager.NSFileOwnerAccountID)+_
> " "+_
> values.Value(fileManager.NSFileOwnerAccountName)
> 
> MsgBox "Group: "+_
> values.Value(fileManager.NSFileGroupOwnerAccountID)+_
> " "+_
> values.Value(fileManager.NSFileGroupOwnerAccountName)

That's weird… I sometimes see answers in this mailing list that point to a MBS 
class I didn't know about earlier. In such cases, I re-read the documentation 
and try to find ones I'm not aware of, to “fill” my knowledge.
Even then, I continue to discover MBS classes I didn't know about (like this 
NSFileManagerMBS class), albeit it exists since version 11!

> Maybe that helps?

Sure, great!

Just a final question: I've seen the NSFileBusy flag in the documentation. 
Using Google, I couldn't understand what kind of “busy” this is (is that the 
“ghost” icon effect one sees while copying a file in the Finder? Or just a 
“flag” that's shared among applications so one can set it and use it while 
another application watches for this flag to determine when the first app has 
finished handling the file?).

Thank you!
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 what is 
the difference between the “old” and “new” API. The only “relevant” information 
is: “If you set Oldway = false, you use the newer API which read unix 
permissions, but not the old ones.”, which doesn't tell more than the obvious: 
what's the old and new unix permissions? Is that ACLs?

Regards
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 valid size. How can I know what sizes the icon really 
has, to not save non-existent ones to my binary stream?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 sizes would be stored 
in one call.

I'm playing with converting that to the new way. As far as I understand, 
there's no way to get all icon sizes as a string with one single call; I have 
to loop thru all the available sizes, using the Image.Representations method, 
and write each picture to the binary stream. Am I correct?

So, I'm testing this code in a blank project, to show various icon sizes 
(there's a listbox with 2 columns (width and height) and a canvas; a property 
(Image as NSImageMBS) is in the window):
Sub SetUp(File As FolderItem)
dim i As Integer
dim r,rl() As NSImageRepMBS

if File<>nil then
  Image=NSWorkspaceMBS.iconForFile(File)
  if Image<>nil then
rl=Image.representations

for i=0 to UBound(rl)
  r=rl(i)
  
  LB1.AddRow str(r.pixelsWide)
  LB1.Cell(LB1.LastIndex,1)=str(r.pixelsHigh)
next
  end if
end if
End Sub

In the Listbox's change event:
if Image<>nil and me.ListIndex>-1 then
  Image.setSize(val(me.Cell(me.ListIndex,0)),val(me.Cell(me.ListIndex,1)))
  Cnv1.Backdrop=Image.CopyPictureWithMask
  Cnv1.Refresh
end if

I have two questions regarding this:
1: I don't understand the difference between r.PixelsHigh and r.Height (and the 
width counterpart). Am I using the right one?
2: the representations returned have non-unique values: I'm getting, for 
instance, 32x32 several times, with no clear differences between them (the 
other properties seem to be identical). Should I just ignore the ones that are 
repeating to get all the possible icons?

Thank you.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 hidden/quit/launched/switched, when 
the system UI mode changes, when a volume is mounted/unmounted and receives hot 
keys.
All this lost by a deprecation?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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.
> 
> 
> Dim f As FolderItem
> Dim P As Picture
> 
> f = Volume(row)
> Dim n As NSImageMBS = NSWorkspaceMBS.iconForFile(f)
> if n <> Nil Then
>// set the size we want
>n.setSize 256, 256
>// make a copy as picture
>P = n.CopyPictureWithMask
>if P <> Nil Then
>  Canvas1.Backdrop = P
>end If
> end if
> 
> 
> My question is this: this works fine in all macOS, but it seems just in 
> Mojave that the mask doesn't exist - the background is black. Was this fixed 
> in later MBS's; if so, when - or is this just Mojave's behavior and is there 
> a better way of doing this?

That's very strange. I've just upgraded to Mojave one month ago; the “first” 
thing I noticed in my apps were the icons had a black background, using the old 
FolderItem.Icon (I didn't update my code); so I refactored my code to use the 
new NSWorkspace function (the same code you have above) and this fixed my 
issues everywhere. In other words, using NSWorkspaceMBS.IconForFile did the 
opposite to me: make things just work.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 all the items in a listbox).

In the Maximize event, I have this:
#if Target32Bit then
  DisableScreenUpdatesMBS
#else
  me.NSWindowMBS.disableScreenUpdatesUntilFlush
#endif
WasMaximized=True 'A boolean property of the window
TimZoom.Mode=1
StartPosX=self.Left 'An integer property of the window
StartPosY=self.Top 'An integer property of the window
self.Hide

TimZoom.Action event looks like this:
dim i,j As Integer

self.Left=StartPosX
self.Top=StartPosY
i=min(GetPreferredHeightAbsolute,Screen(0).AvailableHeight) 'Compute the new 
height of the window
j=StartPosHeight-(i+HeightWithoutListbox)
i=self.Height-(i+HeightWithoutListbox)
if j=0 then
  self.Height=LastHeight
else
  LastHeightToRestore=LastHeight
  self.Height=self.Height-i
end if

self.Width=StartPosWidth
self.Show
#if Target32Bit then
  EnableScreenUpdatesMBS
#endif
WasMaximized=False

In 32bit, I was disabling screen updates to avoid the window flickering. In 
64bit, even with disableScreenUpdatesUntilFlush, the window still flickers.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 me rebuild a new plugin or 18.2pr2 in the next days to fix this.

Ok, thank you.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 /usr/lib/x86_64-linux-gnu

Those two files are each a link to libcairo.so.2.11400.6 files in the same two 
directories.

No mention of simple libcairo.so file (i.e. without the ending “2”). Not sure 
that it's relevant or not.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 put it next to your app.

So I'll need to instruct the users to install it manually; don't ask me why I 
dislike Linux…

Thanks.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 install Cairo library.

I will, for testing. But if someone wants to try my app, (s)he will also need 
to install the library, which is "ugly". Can't I install the library somewhere 
next to the app?
Thanks.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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: LogoMBS also fails.

> Because if e.g. Cairo library is not found, some things fail.
> Where is your libcairo.so file on disk?

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)

Thank you.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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, Cinnamon 3.2.7., PictureToPNGStringMBS 
returns an empty string.

In the more complex project where I had troubles at the first place, I noticed 
PNGStringToPictureMBS returned a nil picture (it worked fine on the Mac and 
Windows versions).

Perhaps a problem with shared libraries?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 saving changes in localized 
versions (also, command-D would select Don't save, even if the localized button 
didn't include a “D”). It's a shame, but I'll go that way.

> To save later, you can use NSSavePanelMBS to pick a file name.

Yes, thank you.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 Cocoa?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 bits. Is it broken?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 also gone as there is no longer a PICT based 
> picture in Xojo.

Ok, I’ll try workarounds.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 structure is shown there).
https://en.wikipedia.org/wiki/ICO_(file_format)

I’m reading it at the moment. Perhaps you can construct it by hand in your app.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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
MenuItem.Enabled=False
  end if
next

Putting a breakpoint in the “MenuItem.Enabled=False” line, I’m seeing the 
statement is executed. However, the item is always enabled.

I can’t use the CarbonApplicationEvents class either (MenuPopulate event) 
because the obtained NSMenuMBS, given the passed handle, looks invalid (when 
using Menu.NumberOfItems, I get a CocoaException). As it’s for 64 bit, I can’t 
either use the MenuMBS way.

What is the workaround?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 not work with Robocopy (files copy utility from 
> Microsoft).
> 
> Launched by a slave app, when I kill the process of this app, Robocopy 
> continues copying all the files/folders it has to copy.
> 
> So, I need to kill Robocopy, too. But I have several slave apps and, of 
> course, several Robocopy processes.
> 
> How to know what Robocopy process has been launched by a certain slave 
> app? Kind of "child process" of a process.
> 
> Is there a way, using MBS or any other resource (i.e. dll call)?

Hello Jean-Luc,

I know it’s too late for you, because you found another approach, but, just for 
the archives, I’ve found that you can use this shell command to get process id 
of child processes:
wmic process where (ParentProcessId=0) get Caption,ProcessId

Replace 0 by the actual process id of the parent process.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 parameters.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 13.2 version.


___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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). It has the same width 
and height than the screen, just plain black. At this point, all calls to 
ScreenShotDisplayMBS continue to return a black picture (until I quit and 
relaunch the application). This is on Windows.

What conditions can result in ScreenShotDisplayMBS returning a plain black 
picture? Memory doesn't seem low, according to the tasks manager.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 try. It's a complex app; I'm 
starting to think it's a bug in my code.

> As far as I see here, both functions do not leak for me.

Thank you, I may look at some other functions.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 creates a 
xojo picture (a small picture of 1x1 of dimension to compute string sizes), I 
get an OutOfMemory exception. In the Windows task manager, my app consistently 
stays at around 22 MB of used memory. The free system memory isn't a problem 
either.

I'm wondering whether ScreenshotDisplayMBS or PictureToPNGStringMBS (or perhaps 
another function I use) is leaking memory. Is this a possibility?
Any advice as of how to debug this would be greatly welcome.

Using Windows with latest plugins; the Mac version seems to work fine, albeit 
I've not tried long enough.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 you have. However, your reply is split in 
several lines. I'm assuming the digest mode has flaws.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 get a picture as well without taking screenshot extra.
> 
> What do you think?

Hello,
That's great for the Mac side, indeed.
For Win32 and Linux (unless there's a similar API?), I'd still have to make my 
own code; I could merge both techniques in my code. Of course, if these systems 
also provide notifications about changed parts of the screen, that'd be the 
most excellent news.

I think being informed of parts of screen that changes would be a great 
addition in the plugin.

> For speed it may be good if the plugin does more here to make sure you get 
> best speed, e.g. compress areas as jpegs.

Granted, but if other users happen to use it, perhaps it would be some kind of 
parameter to still be possible to get an uncompressed picture?
Thank you.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 to compare pictures to obtain a 10 FPS rate 
looks not easy.
•I assume I'd not compare all pixels of two pictures each time; I'm thinking 
about scanning, say, one line at each frame (so, comparing the first and second 
pictures in line 1, the second and third in line 2, etc.), but I have no idea 
how efficient it would be. Should I scan by squares rather than lines? How much 
scan is both enough and not too slow, on most computers?
I miss clues to do this.

> We have no read function for you.
> But of course we could later speedup one.

Ok, I'll stay tuned.
Thank you.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 method monday, after being busy for the 
week-end.
In the meantime, I can explain my idea like this: when you have Developer tools 
installed (on a Mac), you may have this application installed:
/Developer/Applications/Performance Tools/Quartz Debug.app
(at least, I found it on my 10.6 installation)
when you open it, you have a window with a bunch of checkboxes; one of them is 
labelled “Flash screen updates”. Checking it, all parts of the screen that are 
modified are flashing yellow. I understand this is a direct access to the 
graphics card (or graphics component of the OS, not sure) and I can't do 
exactly this, but this is the result I'd like to achieve.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 the area
that changed. I'm thinking it would cost some speed in Xojo to do that; is
this possible using the MBS plugin, and how much would it slow the app down?


___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 
> Selection(0),Selection(1),Selection(2)-Selection(0),Selection(3),Selection(4),Selection(5)-Selection(1),Selection(6)-Selection(0),Selection(7)-Selection(1)
> 
> With:
> 
> g.DrawRect 
> Selection(0),Selection(1),Selection(2)-Selection(0),Selection(5)-Selection(1)
> 
> Your Selection array is actually a great idea. I will now adapt my own 
> code (already working) for resizing the selection rectangle.

Hello Jean-Luc,
I'm glad this suits your needs; I had the need for it to try to make a drawing 
application in the past (well, it'll probably never be finished, as it's too 
complex).

Thank you for having reported my mistake; I'm yet unable to understand why I've 
put so many parameters while I knew it takes only 4…
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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.
> ClickedCorner is meant to know what the user has clicked.
> 
> First part, the selection:
> In the MouseDown event:
> Selection=Array(x,y,x,y,x,y,x,y) //All bounds default to the origin
> Return True
> 
> In the MouseDrag:
> Selection(2)=x 'New x for the right-top corner
> Selection(5)=y 'New y for the left-bottom corner
> Selection(6)=x 'New x for the right-bottom corner
> Selection(7)=y 'New y for the right-bottom corner
> me.refresh false
> 
> In the paint event, near the end:
> if UBound(Selection)>=7 then
> g.ForeColor=HighlightColor
> g.DrawRect 
> Selection(0),Selection(1),Selection(2)-Selection(0),Selection(3),Selection(4),Selection(5)-Selection(1),Selection(6)-Selection(0),Selection(7)-Selection(1)
> end if
> 
> Now, add a method like this:
> Function GetCornerForXAndY(x as integer,y as integer)
> if UBound(selection)<7 then return -1 //No corner exists
> 
> if abs(x-selection(0))<5 then 'We're at the left line
> if abs(y-selection(1))<5 then Return 0 //Left-Top
> if abs(y-selection(7)<5 then Return 2 //Left-Bottom
> elseif abs(x-selection(2)<5 then 'We're at the right line
> if abs(y-selection(1))<5 then Return 1 //Right-Top
> if abs(y-selection(7)<5 then Return 3 //Right-Bottom
> end if

if xselection(6) or y>selection(7) then 
return -1 //the user clicked outside of the rectangle; we may start a new one
return 4 //User clicked inside the rectangle; we'll move it
End Function

Add another method:
Function GetXAndYForCorner(CornerID as integer) as Pair
if UBound(Selection)<7 then return nil
select case CornerID
case 0
return new Pair(selection(0),selection(1))
case 1
return new Pair(selection(2),selection(3))
case 2
return new Pair(selection(4),selection(5))
case 3
return new Pair(selection(6),selection(7))
end select
end function

Add two properties to the canvas: DeltaX as integer, DeltaY as integer. Those 
will be used for the distance between the mouse and (either) the centre of a 
handle or the left-top corner for a move.
Modify the MouseDown event like this (since we're at the next step):

ClickedCorner=GetCornerForXAndY(x,y)
select case ClickedCorner
case -1 //Start new selection
Selection=Array(x,y,x,y,x,y,x,y) //All bounds default to the origin
Return True
case 4 //Move
DeltaX=x-Selection(0)
DeltaY=y-Selection(1)
Return True
else 'A handler
dim p as pair

p=GetXAndYForCorner(ClickedCorner)
if p<>nil then
DeltaX=x-p.left
DeltaY=y-p.right
return true
end if
end select

Add another method:
Sub MoveSelection(Corner as integer,HValue as integer,VValue as integer)
dim i as integer

select case Corner
case 4 //Move
for i=0 to UBound(selection)
if i mod 2=0 then
selection(i)=selection(i)+HValue
else
selection(i)=selection(i)+VValue
end if
next
else
selection(corner*2)=selection(corner*2)+HValue
selection(corner*2+1)=selection(corner*2+1)+VValue
end select
end sub

Modify the MouseDrag:
select case ClickedCorner
case -1 //Start new selection
Selection(2)=x 'New x for the right-top corner
Selection(5)=y 'New y for the left-bottom corner
Selection(6)=x 'New x for the right-bottom corner
Selection(7)=y 'New y for the right-bottom corner
case 4 //Move
MoveSelection(ClickedCorner,selection(0),(x-selection(0))-DeltaX,(y-selection(1))-DeltaY)
else 'A handler
dim p as pair

p=GetXAndYForCorner(ClickedCorner)
if p<>nil then
MoveSelection(ClickedCorner,(x-p.left)-DeltaX,(y-p.right)-DeltaY
end if
end select
me.refresh false

Again, it's not a tested code, just a hint.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 (/Library/LaunchAgents)
//f2 is a file written in the temporary folder
dim au as AuthorizationMBS

au=new AuthorizationMBS
if au.SimpleNewAuthorization then
  au.SimpleAuthorize
  if au.Authorized then
au.Execute("/bin/mv",Array(f2.ShellPath,f1.ShellPath)) //Move the temp file 
to the LaunchAgents folder

if au.LastError<>0 then
  dim e as RuntimeException
  e=new RuntimeException
  e.ErrorNumber=au.LastError
  e.Message="Authentication not granted."
  raise e
end if
f1=SpecialFolder.Library.Child("LaunchAgents").Child(t+".plist") //point f1 
to the resulting file; the resulting folderitem is valid, as seen in the IDE 
(it exists and it the correct one).

au.Execute("/bin/chown",Array("0",f1.ShellPath)) //The file must be owned 
by root to work with launchd
if au.LastError<>0 then
  dim e as RuntimeException
  e=new RuntimeException
  e.ErrorNumber=au.LastError
  e.Message="Authentication not granted."
  raise e
end if

I'm getting the -60031 error code when executing chown. Any idea?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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)
> 
> This is what the NSEventMonitorMBS class uses to watch for events.

But NSEVentMonitorMBS doesn't seem to allow sending events.
May I ask you where Apple documents that moving the mouse doesn't update the 
display, please? That would put me on track to look for workarounds.
___
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 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 the move (e.g. the 
>> Dock doesn't show the name of the app the mouse is over, menu items aren't 
>> highlighted until I actually click on them or the screen saver does not 
>> vanish with mouse moves).
> 
> That's documented by apple. It just changes the mouse position.

Ok, I checked for this, as it's a relatively big problem. First, when I search 
for “simulate mouse move Mac” on Google, I get almost not a single page talking 
about this fact. Users just ask the question “how to move the mouse?”, get an 
answer in C code (which I can't test since I don't program in C) and reply with 
“thanks”.

I've found one website which suggests to simulate some kind of mouse dragged 
event, with this code:
[NSEvent addGlobalMonitorForEventsMatchingMask:(NSMouseMovedMask) 
handler:^(NSEvent *event)
{
[self simulateMouseEvent: kCGEventLeftMouseDragged];
}];
That's rather for when a window jumps from start position to end position 
between the mouse down and the mouse up, but since I also get this problem, I'm 
wondering if this is not the key to the entire problem.

What do you think about that?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 good.

That's what I thought, but the phrases were misleading. Thanks for the 
clarification.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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. 
> Unfortunately, I don't know where...

Hello Jean-Luc,
And google isn't very helpful. Even when I can find declares, they are too 
complex to be used in Xojo.

> Another possibility, based on that, is to set up a coin for screen 
> sleeping, and then to move the cursor in this coin in order to turn the 
> screen in sleeping mode.

This wouldn't work for my needs.
Thank you anyway.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 get such an event. Should I get one when the 
user chooses “Sleep” or when the computer idles so long that it sleeps by 
itself (or both)?

>> I'm also wondering whether it's possible to get the Win32 and Linux mouse 
>> cursor shape (the Mac one is already doable with the NSCursor class).
> 
> see here for Windows:
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms648388(v=vs.85).aspx
> and
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms648389(v=vs.85).aspx
> 
> Maybe those help?

The first is of no help (only for owning app, which never shows an UI). The 
second one, I'm having troubles with; in particular, I don't understand this 
sentence: “Note that you must set the cbSize member to sizeof(CURSORINFO) 
before calling this function.”. This is my test code:

dim b as Boolean
dim m as new MemoryBlock(1000) 'Hoping it's big enough to hold all the data so 
I can later resize it down

Declare Function GetCursorInfo lib "User32.dll" (pic as ptr) as Boolean

b=GetCursorInfo(m)

b is false and m is filled with zeroes.
What's wrong?

>> Any news about a function to directly return a screenshot of any monitor 
>> directly as a string?
> 
> Sorry, no.

Ok, I can wait. I'm hoping you still consider it :-)

> Sorry. The plugin can do a lot, but not everything.

No problem. I'm just giving my questions as a “stack” and then include what's 
doable.

>> Is it possible to turn a Mac screen to sleep? The declares I found are hard 
>> to translate in Xojo code.
> 
> Maybe easiest is to run an applescript for this.

I haven't found a function for that. Sleeping the whole computer is easy, but 
just the screen seems to be deeply implemented in some IOKit…

Thank you for your answers.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[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 different 
with standing by?

I'm also wondering whether it's possible to get the Win32 and Linux mouse 
cursor shape (the Mac one is already doable with the NSCursor class).

Any news about a function to directly return a screenshot of any monitor 
directly as a string?

Translating the keyboard across operating systems is a nightmare. Linux uses a 
layout different than Mac and Win32 (each key being indexed simply from left to 
right instead of using physical key codes); perhaps we miss some methods for 
that?
Grabbing the command key on Mac (e.g. to transmit a Windows key to a Win32 
computer) is also complex (how do we simulate Windows+R, for instance?).

Is it possible to turn a Mac screen to sleep? The declares I found are hard to 
translate in Xojo code.
___
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-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 then Backspace, if arrows worked; however, I can't replace 
arrow keys, which are widely used. That's a shame.
Might I ask you the actual declare for this function so I can test directly?
___
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-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?
___
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-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 tried a loop from 0 to 300, with 
RemoteControlMBS.WinPressKey and no value produced these keys (I tried in a 
TextArea full of text); that's why I think something is broken, since at 128, 
it starts over like from 0. Can you actually produce an arrow key or delete on 
your Win32 computer?

>> On Mac, most keys work; however, I've had to make a “select case” for the 
>> arrow keys and the “o” key (strange for the “o” key; “O” is recognised just 
>> fine, as are all the other characters…) since they all fail to be recognised 
>> by RemoteControlMBS.MacTextForKeyCode(i,3,j) (I've made like the example, 
>> with a loop, testing all key modifiers combinations).
> 
> If you have a sample project there, maybe email it to me so I can check it 
> here.

This is the code I made:
Function MacFindVirtualKeyForKey(Key As String,ByRef Shift As Boolean,ByRef 
Option As Boolean,ByRef Ctrl As Boolean) As Integer
  dim c,o,s As Boolean
  dim i,j As Integer
  
  do
j=0
if c then j=j+16
if o then j=j+8
if s then j=j+2
for i=0 to 127
  dim t As String=RemoteControlMBS.MacTextForKeyCode(i,3,j)
  if StrComp(Key,t,0)=0 then
Shift=s
Option=o
Ctrl=c
Return i
  end if
next
c=not c
if not c then
  o=not o
  if not o then
s=not s
if not (c or o or s) then exit
  end if
end if
  loop
  Return -1
End Function
Call it so:
dim ak,ck,sk as boolean
dim j as integer

j=me.MacFindVirtualKeyForKey("o",sk,ak,ck)
break

I'm getting j=-1, just for o and arrow keys.

> That's documented by apple. It just changes the mouse position.

So how does Remote Desktop and (if I recall correctly) TeamViewer work around 
this issue?

> I am not sure about those. Maybe NSEventMonitorMBS can catch a few as well as 
> WindowsKeyFilterMBS class.

Ok, I will try these.

>> For Command-Tab, I tried several things, like a CarbonHotKeyMBS (not caught) 
>> and NSEventMBS seem to imply one cannot handle global events (which I assume 
>> Command-Tab is). On the Internet, I found one suggestion about using Event 
>> Traps (I don't know how to use it) and one piece of code:
> 
> Event taps need root permissions. So I didn't implement them.

Do you know they would work for that? Apple Remote Desktop catches Command-Tab 
and send it further (but TeamViewer doesn't), which implies it's doable. For 
now, I think I'll just catch Option-Tab and convert it to Command-Tab on the 
remote side (in addition, Windows to Mac would work like that anyway).

Thank you.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 
feasible on the Win32 side?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 thread easily.

Could we imagine a method which returns JPEG data directly from a screen 
capture without passing by a Xojo picture (for at least Mac and Win32)? The 
purpose of my app is somewhat like Apple Remote Desktop, ideally for each of 
the 3 supported operating systems.
Thanks.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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.

> With CGImage it'S faster, around 170 ms
> 
>  dim img as CGImageMBS = c.CreateImage
>  dim jpeg as MemoryBlock = img.JPEGData

Thanks; that will do the trick on the Mac side. For now, however, I'm focused 
on the Win32 side (I was asked for it).

> Technically I could of course put that into an async API which would do the 
> work on another CPU core.
> This way you could start one each 100 ms and with two CPU cores get it done.

I think it's worth the attempt, if it's not too hard to do (I don't want to ask 
too much either).
Thank you.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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
https://ml01.ispgateway.de/mailman/listinfo/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 
pictures slowly. The network may not be the problem because each picture takes 
around 200 KB, so I'm thinking either ScreenshotDisplayMBS or 
PictureToJPEGStringMBS is too slow for my needs.
Is there something that can be done?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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.
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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 work (but it's still a pain to rewrite all 
that).

 Check regularly where you are and copy next file when one is finished?

Yes, that's my question.

 Maybe when you get status changed event for a file being done, you can start 
 next copy?

Did you not say the StatusChanged event would not arrive for small files (and 
it's the problem I'm experiencing)? That's why I think the StatusChanged event 
should be called “once more”, when the copy is done (whatever the file size 
is). What do you think about that?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


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; I've defined it as a property for that reason.

 And if copy is too short it will properly not call event.

That may be my problem. I'm relying on the event to start the next file (so 
each file is copied serially). I understand that StatusChanged event is a 
“catchall” event: it doesn't differentiate if the copy starts, runs, or ends. 
It's not very reliable to know when a copy is finished if there's neither a 
specific event for that and the only available one may not execute at all.
It's even worse, as I don't see a workaround. I could use a timer approach (the 
timer checks each second if the copy has finished and, if yes, launch the next 
copy), but the MacFileOperation class also lacks a property to check the state 
outside of the StatusChanged event.
What's the proper way to copy files serially using this class?

 As well as if main thread is too busy.

It makes no difference if I don't break into my code or not, so the only thing 
that could block the main thread (i.e. RS resuming the suspended app) isn't the 
issue, I believe.
Thanks
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


  1   2   3   >