Re: Dumping NSManagedObject seems to truncate some values
Re: Dumping NSManagedObject seems to truncate some values
- Subject: Re: Dumping NSManagedObject seems to truncate some values
- From: Jerry Krinock <email@hidden>
- Date: Fri, 14 Jun 2013 12:32:11 -0700
On 2013 Jun 13, at 17:30, Fritz Anderson <email@hidden> wrote:
> My bet is neither. In my experience, -[NSManagedObject description] truncates long text.
Not very much, in my experience. Here's a demo. 2054 characters. All expected attributes and values were printed. The only truncation was in the "children" value, but that is clearly marked by "(...and 993 more...)".
(lldb) po [[self starker] root]
$0 = 0x000000010725b9e0 <Stark: 0x10725b9e0> (entity: Stark_entity; id: 0x107253db0 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p1> ; data: {
addDate = nil;
autodeleteDate = "3000-01-01 12:00:00 +0000";
children = (
"0x1187a8e20 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p2172>",
"0x10ccd61b0 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p1895>",
"0x10bce14f0 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p1787>",
"0x10c0c3a20 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p1858>",
"0x116fa77d0 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p2093>",
"0x11202efb0 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p1949>",
"0x11c237cc0 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p2301>",
"0x10a1565d0 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p2247>",
"0x1232baeb0 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p2510>",
"0x1022bd640 <x-coredata://EF5FFF8B-2CB4-435E-86CE-1ADA2C875FB7/Stark_entity/p1740>",
"(...and 993 more...)"
);
color = nil;
comments = nil;
dontExportExformats = nil;
dontVerify = 0;
dupe = nil;
exid = nil;
favicon = nil;
faviconUrl = nil;
index = 0;
isAllowedDupe = 0;
isAutoTab = 0;
isExpanded = nil;
isShared = 0;
lastChengDate = nil;
lastModifiedDate = "2013-06-14 18:04:49 +0000";
lastVisitedDate = nil;
name = Root;
parent = nil;
rating = 0;
rssArticles = nil;
sharype = 1;
shigForLanding = nil;
shortcut = nil;
sortDirective = 0;
sortable = 127;
starkid = aypGAqWXRMWkLa1gq4mk8w;
tags = nil;
toRead = 0;
url = nil;
verifierCode = nil;
verifierDetails = nil;
verifierDisposition = "-1";
verifierLastDate = nil;
verifierSubtype302 = nil;
visitCount = nil;
visitor = visitDD;
visitorWindowFrame = nil;
})
(lldb)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden