uimanageddocument

Uima Ruta Out of Memory issue in spark context

无人久伴 提交于 2019-12-05 21:43:25
问题 I'm running an UIMA application on apache spark. There are million of pages coming into batches to be processed by UIMA RUTA for calculation. But some time i'm facing out of memory exception.It throws exception sometime as it successfully process 2000 pages but some time fail on 500 pages. Application Log Caused by: java.lang.OutOfMemoryError: Java heap space at org.apache.uima.internal.util.IntArrayUtils.expand_size(IntArrayUtils.java:57) at org.apache.uima.internal.util.IntArrayUtils.ensure

UIManagedDocument migrate data model

跟風遠走 提交于 2019-12-04 11:48:32
I am working on an iPhone app that uses a subclass of UIManagedDocument and stores its documents on iCloud. It was all working fine until I changed my core data model / scheme (adding a new model version - like I had several times in the past few weeks). I added a new property and changed the data type of one of the existing properties. Now when I run my app I don't seem to be able to load my documents with UIManagedDocument 's -openWithCompletionHandler: . I can create new documents and read/write those. If I change the data model version back 1 then I am able to read the existing docs, but

UIManagedDocument + iCloud “Big Picture”?

天涯浪子 提交于 2019-12-04 10:25:59
I am working on my first "iCloud App". I worked through the Apple docs and the Stanford videos but I am still struggling to understand the "Big picture" of iCloud. My goal is to create a " Library style " app (which is Apples term for an app with "a single Core Data stack with a single persistent store coordinator and a single persistent store") like the Employees example . Following the Stanford videos I am using a UIMangedDocument to setup all Core Data stuff and enable the iCloud capabilities. The UIMangedDocument contains the Database and is "stored in the cloud". This is already the first

UIManagedDocument saveToURL completionHandler is not called - Error message: “The reader is not permitted to access the URL.”

拜拜、爱过 提交于 2019-12-04 04:02:24
I've got an old app that uses UIManagedDocument to interact with Core Data. However on iOS 11.2 (and possibly earlier iOS 11 point releases) the saveToURL:forSaveOperation:completionHandler: method seems to have stopped working both on-device and in the simulator (however it does still work in the iOS 10.3.1 simulator). Specifically, in the code below the completionHandler inside the first if statement is never executed (as NSLog messages indicate). - (void)useDemoDocument { NSURL *url = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask]

How to open/create UIManagedDocument synchronously?

旧巷老猫 提交于 2019-12-02 06:02:14
问题 As mentioned in title, I would like to open UIManagedDocument synchronously, i.e, I would like my execution to wait till open completes. I'm opening document on mainThread only. Current API to open uses block [UIManagedDocument openWithCompletionHandler:(void (^)(BOOL success))]; Locks usage mentioned at link works well on threads other than main thread. If I use locks on mainThread , it freezes execution of app. Any advice would be helpful. Thanks. 回答1: First, let me say that I strongly

UIManagedDocument CompletionHandler not executed in iOS 5.1 simulator but works on device and iOS 6.0 simulator

萝らか妹 提交于 2019-11-29 16:18:54
I hope someone has some thoughts on this one... I have a project that uses UIManagedDocument. The first thing I do in the appDelegate is open the document. Everything has been going fine until suddenly (nothing was changed in the code) the -openWithCompletionHandler: stopped executing the handler code. The app works just fine on the device, but not in the simulator. As a lark I tried running the app under the iOS 5.0 and 6.0 simulators and everything works as expected!?! I have reinstalled xcode 4.5 and the behavior stays the same. I deinstalled by trashing the xcode app in the applications

UIManagedDocument example / tutorial

血红的双手。 提交于 2019-11-29 14:53:22
问题 I have been trying very unsuccessfully to create a simple UIManagedDocument library style application (separate documents saved to iCloud). I am confused with the following: Do I subclass UIManagedDocument and set up the persistentStoreCoordinator , ManagedObjectModel & ManagedObjectContext within this subclass, or are these supposed to be configured within the AppDelegate (and if so, how do I go about refreshing the persistentStoreCoordinator to look at the new file - it seems that once that

Bug in iPhone Simulator 5.1 with Xcode 4.5 using UIManagedDocument

杀马特。学长 韩版系。学妹 提交于 2019-11-28 19:50:10
I have a very weird problem I've spent the last two days trying to solve... I had a piece of code that was working perfectly fine on Xcode 4.4 and iOS 5.1 Simulator, using the 5.1 SDK. After I updated to Xcode 4.5 and the 6.0 SDK, my code stopped working in the iOS 5.1 Simulator... even though it works perfectly fine in the iOS 6.0 Simulator. Was there any change I'm not aware of? This is the code: - (void)useDocument { if (![[NSFileManager defaultManager] fileExistsAtPath:[self.database.fileURL path]]){ [self.database saveToURL:self.database.fileURL forSaveOperation:UIDocumentSaveForCreating

UIManagedDocument CompletionHandler not executed in iOS 5.1 simulator but works on device and iOS 6.0 simulator

不羁的心 提交于 2019-11-28 09:35:05
问题 I hope someone has some thoughts on this one... I have a project that uses UIManagedDocument. The first thing I do in the appDelegate is open the document. Everything has been going fine until suddenly (nothing was changed in the code) the -openWithCompletionHandler: stopped executing the handler code. The app works just fine on the device, but not in the simulator. As a lark I tried running the app under the iOS 5.0 and 6.0 simulators and everything works as expected!?! I have reinstalled

Is it possible to intercept iCloud switching on/off in Settings -> iCloud -> Document & Data?

为君一笑 提交于 2019-11-28 05:31:26
问题 Is it possible to intercept if the user switches from on to off the iCloud support under Settings -> iCloud -> Document & Data ? Obviously when he does this the app has already resigned active and entered the background. I am targeting iOS7 and I would like to keep in sync the UIManagedDocument , otherwise it would be like having two different UIDocuments: one with iCloud support and all the data created until the switch from on to off and a new one without any data in it. If I create data