Dumping NSManagedObject seems to truncate some values

  • I've got a model object that has an NSString* file (copy) property. I assign it from an NSURL.path, with a value like:

    "/Users/.../Documents/Jobs/2DCF5AA0-46AD-4150-A4A1-8786F7627F27/C49D460B-549D-4187-AEF3-02D7424E9113.swl"

    Right after that, if I do "po myObj" in the debugger (Xcode 4.6.2), I see something like this:

    (lldb) po myObj
    $1 = 0x0d364560 <Sweep: 0xd364560> (entity: Sweep; id: 0xd3583f0 <x-coredata:///MyObj/t6A271877-BABB-4E23-AE56-400B626F91DF2> ; data: {
        center = "(...not nil..)";
        centerShadow = nil;
        createDate = "2013-06-13 02:37:13 +0000";
        file = "/Users/.../Documents/Jobs/2DCF5AA0-46AD-4150-A4A1-8786F7627F27/C49D460B-549D-4187-AEF3-02D7424E9113";
        uploadDate = nil;
        uuid = "C49D460B-549D-4187-AEF3-02D7424E9113";
    })

    Something appears to truncate the ".swl" filename extensions. But "po [myObj file]" works:

    (lldb) po [myObj file]
    $3 = 0x0d3653c0 /Users/.../Documents/Jobs/2DCF5AA0-46AD-4150-A4A1-8786F7627F27/C49D460B-549D-4187-AEF3-02D7424E9113.swl

    Is this just a bug in lldb, or -[NSManagedObject description]?
    --
    Rick
previous month june 2013 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today