Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String truncated in Core-Data on iPhone

I have an Entity (Article) with an Class defined at xcdatamodel. In this class i defined an String NSString *test;

currentArticle.test = string;

String is more than 50 characters long.

But when i try to fetch the Stored Object with:

Article *article = [fetchedResultsController objectAtIndexPath:indexPath];

then article.test is truncated (50 Characters long). But it should be longer...

Any ideas?

like image 909
x2on Avatar asked Dec 01 '22 11:12

x2on


1 Answers

I've just noticed the same.

As far as I can tell, when logging an NSManaged Object (or a core data error), only the first 50 or so characters of a string attribute are printed. But the actual attribute still has all the characters.

like image 106
teehemkay Avatar answered Dec 05 '22 02:12

teehemkay