Xojo Conferences
XDCMay2019MiamiUSA

[MBS] ICMapMBS (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] SuperSocket in non-Professional RB
Next thread: [MBS] [ANN] MonkeyBread Software Releases the MBS REALbasic plug-ins in version 8.2


RE: [MBS] DOM classes for Mac OS X HTMLViewer   -   Giovanni
  [MBS] ICMapMBS   -   Beatrix Willius
   Re: [MBS] ICMapMBS   -   Christian Schmitz

[MBS] ICMapMBS
Date: 08.04.08 18:29 (Tue, 8 Apr 2008 19:29:19 +0200)
From: Beatrix Willius
Since time immemorial I'm using the following code in my app:

dim theICMap as ICMapMBS
dim theICMappingEntries as ICMapEntriesMBS
dim currentIC, p as integer
dim theICInfo as InternetConfigMBS

theICInfo = new InternetConfigMBS("RBv2")
theICMappingEntries = theICInfo.ICMappings
if theICMappingEntries = nil then
'there is none
else
InternetMappings = new Dictionary
for currentIC = 1 to theICMappingEntries.count
theICMappingEntries.GetItem(currentIC, p, theICMap)
if theICMap = nil then
'did not work
else
InternetMappings.value(theICMap.Extension) =
theICMap.FileType + "/" + theICMap.FileCreator
end if
next
end if

Now I have one user, where the dictionary InternetMappings is nil.
How can this happen? I have the following information about the
machine of the customer

MBS Version: MBS Realbasic Plugin 8.1 (build 15671) Tue Feb 19
16:11:22 2008 (GMT)
System Version: Mac OS X 10.5.2
Aqua: Yes
Rosetta: No
CPU: Intel 486
CPU Speed: 2160
Number of CPUs: 2



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] ICMapMBS
Date: 08.04.08 18:28 (Tue, 8 Apr 2008 19:28:05 +0200)
From: Christian Schmitz
Beatrix Willius <<email address removed>> wrote:

> Now I have one user, where the dictionary InternetMappings is nil.
> How can this happen? I have the following information about the
> machine of the customer

Apple burried Mac OS Classic.
And this InternetConfig stuff is a thing from Classic which may not be
present on newer machines.

Please use LaunchService functions to lookup type/creator mappings.

Gruß
Christian

-