Probably exactly as you said. Try overriding -readFromURL:error: to implement 
incremental reading.

Luke

On Jun 20, 2013, at 2:01 PM, Markus Spoettl <ms_li...@shiftoption.com>
 wrote:

> Hello everyone,
> 
>  I have an iOS 6 app that uses UIDocument to implement loading and saving of 
> my app's data. The document data is loaded from and saved to a NSFileWrapper 
> (representing a file package containing many files and folders), handed from 
> and to the document in -loadFromContents::: and -contentsForType::.
> 
> This all works well for small documents but I now have a case where a 
> document the app created in a previous session apparently is too big to be 
> loaded.
> 
> My app vanishes about 1-2 seconds after UIDocument calls -readFromURL:error: 
> before my implementation of -loadFromContents::: is even called. There is no 
> crash and no useful information (to me anyway) logged to the console. It just 
> logs that my app was killed but gives no reason.
> 
> I *suspect* UIDocument tries to load the whole package containing its 140MB 
> of data in about 1000 files and couple of 100 folders and then chokes on it.
> 
> The system had no problem creating the file package and saving it to the 
> "disk", but it sure can't load it.
> 
> I have tried on the simulator and using the same data as on the device it 
> works, the data loads just fine.
> 
> I'm pasting the console output of a typical session from the time the app is 
> started via Springboard until it crashes/vanishes. Maybe it contains a clue I 
> don't see.
> 
> Does someone know what may be going on? I'm using Xcode 4.6.3 and iOS 6.1.3 
> (iPad Retina).
> 
> Thanks!
> Regards
> Markus
> 
> _______________________________________________
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com
> 
> This email sent to luket...@apple.com


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to