Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Parsing a PLIST file (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] DVD Playback works :-)
Next thread: [MBS] Win32 transparent window mask


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] Parsing a PLIST file   -   Dennis Birch
   Re: [MBS] Parsing a PLIST file   -   Dennis Birch
    Re: [MBS] Parsing a PLIST file   -   Christian Schmitz
     Re: [MBS] Parsing a PLIST file   -   Dennis Birch
      Re: [MBS] Parsing a PLIST file   -   Christian Schmitz
     Re: [MBS] Parsing a PLIST file   -   Dennis Birch

[MBS] Parsing a PLIST file
Date: 11.01.04 01:29 (Sat, 10 Jan 2004 16:29:33 -0800)
From: Dennis Birch
Are there any examples of parsing an info.plist file (from an
application bundle)? I have been trying to figure out how to do that
from the documentation but I'm finding the information there to be
too sketchy to help much.

Re: [MBS] Parsing a PLIST file
Date: 11.01.04 03:37 (Sat, 10 Jan 2004 18:37:28 -0800)
From: Dennis Birch
At 4:29 PM -0800 1/10/04, Dennis Birch wrote:
>Are there any examples of parsing an info.plist file (from an
>application bundle)? I have been trying to figure out how to do that
>from the documentation but I'm finding the information there to be
>too sketchy to help much.

I should clarify that I was trying to figure out how to drill down
from CFBundleDocumentTypes to CFBundleTypeExtensions to get the
CFBundleTypeOSTypes array. I've been trying to use MBS plugin's
CoreFoundations classes. Beyond getting the bundle which I found
examples for, I'm not sure where to go.

Re: [MBS] Parsing a PLIST file
Date: 11.01.04 21:19 (Sun, 11 Jan 2004 21:19:39 +0100)
From: Christian Schmitz
Dennis Birch <<email address removed>> wrote:

> I should clarify that I was trying to figure out how to drill down
> from CFBundleDocumentTypes to CFBundleTypeExtensions to get the
> CFBundleTypeOSTypes array. I've been trying to use MBS plugin's
> CoreFoundations classes. Beyond getting the bundle which I found
> examples for, I'm not sure where to go.

I make an example project for the next release.
Basicly you can load the info.plist file with a binarystream, stuff it
using a string into a CFBinaryDataMBS object and create a CFObjectMBS
object from this with NewCFObjectMBSFromXML.

mfg
Christian

Re: [MBS] Parsing a PLIST file
Date: 12.01.04 00:44 (Sun, 11 Jan 2004 15:44:48 -0800)
From: Dennis Birch
At 9:19 PM +0100 1/11/04, Christian Schmitz wrote:
>Dennis Birch <<email address removed>> wrote:
>
>> I should clarify that I was trying to figure out how to drill down
>> from CFBundleDocumentTypes to CFBundleTypeExtensions to get the
>> CFBundleTypeOSTypes array. I've been trying to use MBS plugin's
>> CoreFoundations classes. Beyond getting the bundle which I found
>> examples for, I'm not sure where to go.
>
>I make an example project for the next release.
>Basicly you can load the info.plist file with a binarystream, stuff it
>using a string into a CFBinaryDataMBS object and create a CFObjectMBS
>object from this with NewCFObjectMBSFromXML.

Interesting. I would have thought the CoreFoundation functionality
would allow one to get at those strings. I'll have to give the XML
stuff a try. Can you recommend any good examples to review?

Re: [MBS] Parsing a PLIST file
Date: 12.01.04 10:24 (Mon, 12 Jan 2004 10:24:01 +0100)
From: Christian Schmitz
Dennis Birch <<email address removed>> wrote:

> Interesting. I would have thought the CoreFoundation functionality
> would allow one to get at those strings.

Of course the CFBundle class can give you strings directly if you have
the application opened as a CFBundle object.

Mfg
Christian

Re: [MBS] Parsing a PLIST file
Date: 12.01.04 03:38 (Sun, 11 Jan 2004 18:38:56 -0800)
From: Dennis Birch
At 9:19 PM +0100 1/11/04, Christian Schmitz wrote:
>Dennis Birch <<email address removed>> wrote:
>
>> I should clarify that I was trying to figure out how to drill down
>> from CFBundleDocumentTypes to CFBundleTypeExtensions to get the
>> CFBundleTypeOSTypes array. I've been trying to use MBS plugin's
>> CoreFoundations classes. Beyond getting the bundle which I found
>> examples for, I'm not sure where to go.
>
>I make an example project for the next release.
>Basicly you can load the info.plist file with a binarystream, stuff it
>using a string into a CFBinaryDataMBS object and create a CFObjectMBS
>object from this with NewCFObjectMBSFromXML.

Disregard my earlier reply to this message. I'm not sure it even made
sense. Now that I've had a chance to delve into this, I seem to have
a good grasp of the Core Foundation XML functions. At least enough of
a grasp for this task. Thanks!