Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Whatever happened to the EqualMBS FolderItem function? (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Issue with LaunchServicesItemInfoMBS
Next thread: [MBS] Re: Mbsplugins monkeybreadsoftware.info Digest, Vol 58, Issue 3


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] Whatever happened to the EqualMBS FolderItem function?   -   Erne
   Re: [MBS] Whatever happened to the EqualMBS FolderItem function?   -   Beatrix Willius
    Re: [MBS] Whatever happened to the EqualMBS FolderItem function?   -   Christian Schmitz
   Re: [MBS] Whatever happened to the EqualMBS FolderItem function?   -   Christian Schmitz
    Re: [MBS] Whatever happened to the EqualMBS FolderItem function?   -   Erne
   [MBS] Whatever happened to the EqualMBS FolderItem function?   -   Scott Steinman
    Re: [MBS] Whatever happened to the EqualMBS FolderItem function?   -   Christian Schmitz

[MBS] Whatever happened to the EqualMBS FolderItem function?
Date: 06.01.06 17:03 (Fri, 6 Jan 2006 17:03:30 +0100)
From: Erne
Hello Christian,

I can't find the FolderItem.EqualMBS(FolderItem) function anymore in
MBS 5.5

what's up?

Cool Runnings,
Erne.

/ | | | /
– |/ | | –
| | |

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Whatever happened to the EqualMBS FolderItem function?
Date: 06.01.06 18:55 (Fri, 6 Jan 2006 18:55:50 +0100)
From: Beatrix Willius
Hello Erne,

had the same issue yesterday. It has been removed. I now compare the
LongPathMBS's for two folderitems.

HTH

Am 06.01.2006 um 17:03 schrieb Erne:

> I can't find the FolderItem.EqualMBS(FolderItem) function anymore in



Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: archive, clean and search email
http://www.beatrixwillius.de
Fractals, 3d landscapes etc.

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Whatever happened to the EqualMBS FolderItem function?
Date: 06.01.06 22:22 (Fri, 6 Jan 2006 22:22:19 +0100)
From: Christian Schmitz
Beatrix Willius <<email address removed>> wrote:

> Hello Erne,
>
> had the same issue yesterday. It has been removed. I now compare the
> LongPathMBS's for two folderitems.

Is this function unicode safe?
I'm not sure without looking on the source.

If not, this test will fail for some cases.

(not to meantion that the problem is not solveable at all)

mfg
Christian

Re: [MBS] Whatever happened to the EqualMBS FolderItem function?
Date: 06.01.06 22:22 (Fri, 6 Jan 2006 22:22:19 +0100)
From: Christian Schmitz
Erne <<email address removed>> wrote:

> Hello Christian,
>
> I can't find the FolderItem.EqualMBS(FolderItem) function anymore in
> MBS 5.5
>
> what's up?

The first thing to know is:

There can't be a folderitem equal test which is 100% correct.

You can as a replacement use a function like this:

Function Equal(extends f as folderitem, g as folderitem) As boolean
if f.MacDirID=g.MacDirID then // same directory on Mac
if f.MacVRefNum=g.MacVRefNum then // same volume on Mac
if f.Name=g.Name then // same filename
if f.ShellPath=g.ShellPath then
Return true
end if
end if
end if
end if
End Function

And folderitem.equalmbs was removed as it was not unicode safe for
Windows and not implemented for Linux.

Mfg
Christian

Re: [MBS] Whatever happened to the EqualMBS FolderItem function?
Date: 08.01.06 12:03 (Sun, 8 Jan 2006 12:03:22 +0100)
From: Erne
Thank you Christian,

On 6-gen-06, at 22:22, Christian Schmitz wrote:

> Erne <<email address removed>> wrote:
>
>> Hello Christian,
>>
>> I can't find the FolderItem.EqualMBS(FolderItem) function anymore in
>> MBS 5.5
>>
>> what's up?
>
> The first thing to know is:
>
> There can't be a folderitem equal test which is 100% correct.
>
> You can as a replacement use a function like this:
>
> Function Equal(extends f as folderitem, g as folderitem) As boolean
> if f.MacDirID=g.MacDirID then // same directory on Mac
> if f.MacVRefNum=g.MacVRefNum then // same volume on Mac
> if f.Name=g.Name then // same filename
> if f.ShellPath=g.ShellPath then
> Return true
> end if
> end if
> end if
> end if
> End Function
>

Mind to explain where the hole is in the above function?

> And folderitem.equalmbs was removed as it was not unicode safe for
> Windows and not implemented for Linux.
>
> Mfg
> Christian
>
> --
> Around eleven thousand functions in one REALbasic plug-in.
> The Monkeybread Software Realbasic Plugin.
> <http://www.monkeybreadsoftware.info/realbasic/plugins.shtml>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> http://ml01.ispgateway.de/mailman/listinfo/
> mbsplugins_monkeybreadsoftware.info

Cool Runnings,
Erne.

/ | | | /
– |/ | | –
| | |

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

[MBS] Whatever happened to the EqualMBS FolderItem function?
Date: 07.01.06 13:22 (Sat, 7 Jan 2006 06:22:13 -0600)
From: Scott Steinman
Christian-

> Function Equal(extends f as folderitem, g as folderitem) As boolean
> if f.MacDirID=g.MacDirID then // same directory on Mac
> if f.MacVRefNum=g.MacVRefNum then // same volume on Mac
> if f.Name=g.Name then // same filename
> if f.ShellPath=g.ShellPath then
> Return true
> end if
> end if
> end if
> end if
> End Function

You need to add a Return false at the end of the method. Otherwise,
it will not return anything if the test fails.

Dr. Scott Steinman
Brought to you by a grant from the Steinman Foundation (Thanks, Mom
and Dad!)
Recommended by Major University Studies Over the Leading Brand
steinman at midsouth dot rr dot com

I hope I die peacefully in my sleep like my grandfather. . .not
screaming in terror like his passengers. -- "Deep Thoughts", Jack Handy

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Whatever happened to the EqualMBS FolderItem function?
Date: 07.01.06 13:28 (Sat, 7 Jan 2006 13:28:01 +0100)
From: Christian Schmitz
Scott Steinman <<email address removed>> wrote:

> Christian-
>
> > Function Equal(extends f as folderitem, g as folderitem) As boolean
> > if f.MacDirID=g.MacDirID then // same directory on Mac
> > if f.MacVRefNum=g.MacVRefNum then // same volume on Mac
> > if f.Name=g.Name then // same filename
> > if f.ShellPath=g.ShellPath then
> > Return true
> > end if
> > end if
> > end if
> > end if
> > End Function
>
> You need to add a Return false at the end of the method. Otherwise,
> it will not return anything if the test fails.

You do not need to add a Return false at the end of the method as RB per
default returns the default value for the return data type which is
false in this case.

Mfg
Christian