[NTLK] Programming help - part 2

From: Marisa Giancarla <fstltna_at_yahoo.com>
Date: Fri Aug 22 2008 - 21:12:53 EDT

Thanks for posting that PidToPkgRef() method call - that was what I was
missing to see the .parts array. I can now dump out the parts array but
I am still not seeing anything like the data stored in the package file.
For instance:
    foreach curPkg in GetPackages() do
        begin
            if (EndsWith(curPkg.title, ".prc:PCKTFCTN")) then
                begin
                        print(curPkg.title);
                        
print(GetPkgRefInfo(PidToPkgRef(curPkg.id)).parts[0]);
                end;
        end;

Dumps out the following:

"maskedalibi.prc:PCKTFCTN"
{app: |maskedalibi.prc:PCKTFCTN|,
 text: "maskedalibi.prc",
 icon: {bits: <bits, length 144>,
        mask: <mask, length 144>,
        bounds: {#60D22C4D}},
 iconPro: {unhilited: {#60D22D45},
           hilited: {#60D22F45}},
 theForm: {viewBounds: {#60D231F1},
           viewFlags: 0,
           viewFormat: 0,
           ViewSetupDoneScript: <function, 0 arg(s) #60D2322D>,
           viewClass: 74,
           appSymbol: |maskedalibi.prc:PCKTFCTN|},
 installScript: <function, 1 arg(s) #60D39BF9>,
 removeScript: <function, 1 arg(s) #60D39F21>}
"maskedalib2.prc:PCKTFCTN"
{app: |maskedalib2.prc:PCKTFCTN|,
 text: "maskedalib2.prc",
 icon: {bits: <bits, length 144>,
        mask: <mask, length 144>,
        bounds: {#60D0904D}},
 iconPro: {unhilited: {#60D09145},
           hilited: {#60D09345}},
 theForm: {viewBounds: {#60D095F1},
           viewFlags: 0,
           viewFormat: 0,
           ViewSetupDoneScript: <function, 0 arg(s) #60D0962D>,
           viewClass: 74,
           appSymbol: |maskedalib2.prc:PCKTFCTN|},
 installScript: <function, 1 arg(s) #60D22089>,
 removeScript: <function, 1 arg(s) #60D223B1>}
#2 NIL

Any ideas where the actual package data is stored?

Marisa

-- 
-- http://pulpfictionportal.com   - Main Website --
-- http://pulpfictionauctions.com - eBay Auctions --
-- http://tinyurl.com/5vfp9h      - Direct Link to Newton forum --
==================================================================== 
The NewtonTalk Mailing List - http://www.newtontalk.net/
The Official Newton FAQ     - http://www.splorp.com/newton/faq/
The Newton Glossary         - http://www.splorp.com/newton/glossary/
WikiWikiNewt                - http://tools.unna.org/wikiwikinewt/
====================================================================
Received on Fri Aug 22 21:13:29 2008

This archive was generated by hypermail 2.1.8 : Sat Aug 23 2008 - 10:30:00 EDT