Yes, I saved it as XML and opened the file.  Below is what I found:
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "file:///System/Library/DTDs/CoreData.dtd">

<database>
    <databaseInfo>
        <version>134481920</version>
        <UUID>E968A00D-5333-4E12-909D-8709A682BBB7</UUID>
        <nextObjectID>124</nextObjectID>
        <metadata>
            <plist version="1.0">
                <dict>
                    <key>NSPersistenceFrameworkVersion</key>
                    <integer>246</integer>
                    <key>NSStoreModelVersionHashes</key>
                    <dict>
                        <key>Measurement</key>
                        <data>
                iatDMdoCO7TpSerGFX5eZReCv4U51ctNJow7oefYP1o=
                </data>
                    </dict>
                    <key>NSStoreModelVersionHashesVersion</key>
                    <integer>3</integer>
                    <key>NSStoreModelVersionIdentifiers</key>
                    <array></array>
                    <key>_NSAutoVacuumLevel</key>
                    <string>2</string>
                </dict>
            </plist>
        </metadata>
    </databaseInfo>
    <object type="MEASUREMENT" id="z102">
        <attribute name="wheretaken" type="string">Home</attribute>
<attribute name="timemeasured" type="date">252536460.00000000000000000000</attribute>
        <attribute name="systolicpressure" type="int32">128</attribute>
        <attribute name="pluserate" type="int32">75</attribute>
        <attribute name="diastolicpressure" type="int32">88</attribute>
<attribute name="datemeasured" type="date">273470400.00000000000000000000</attribute>
    </object>
    <object type="MEASUREMENT" id="z103">
        <attribute name="wheretaken" type="string">Home</attribute>
<attribute name="timemeasured" type="date">252554760.00000000000000000000</attribute>
        <attribute name="systolicpressure" type="int32">133</attribute>
        <attribute name="pluserate" type="int32">78</attribute>
        <attribute name="diastolicpressure" type="int32">90</attribute>
<attribute name="datemeasured" type="date">273643200.00000000000000000000</attribute>
    </object>
As you can see there are Measurement objects.
On Sep 4, 2009, at 10:06 AM, I. Savant wrote:


 Taking this back on-list where it belongs.


On Sep 4, 2009, at 9:53 AM, Clayton Leitch wrote:

Yes, there is a Measurement instance in the the data model. Debugger shows that everything is set properly until the array gets no objects in answer to the query.


 Are you sure? How have you verified all of this?

To verify an instance exists, have you saved the context to the store (as XML, perhaps) and looked inside the resulting file to make sure the instance is actually there?

--
I.S.



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to