Questions tagged [uidocument]

UIDocument represents a user-editable document in an iOS application. It is an abstract base class in the UIKit framework. When it is used, its subclass takes the role of the model of a model-view-controller application. Because it implements the NSFilePresenter protocol, it significantly simplifies writing a document-based iOS application. Its Mac OS counterpart is NSDocument.

UIDocument represents a user-editable document in an iOS () application. It is an abstract base class in the UIKit () framework. When it is used, its subclass takes the role of the model of a model-view-controller application. Because it implements the NSFilePresenter protocol, it significantly simplifies writing a document-based iOS application. Its Mac OS () counterpart is NSDocument ().

To learn more, see the Document-Based App Programming Guide for iOS.

268 questions
0
votes
1 answer

Save UIDocument to iCloud give me NSCocoaErrorDomain Code=4

in my app i want write document on iCloud, but i have a problem with one iCloud account, this is the scenario: iCloud Account A, all works perfectly, i can write and read, with iPad and iPhone. iCloud Account B, same as above, i can write and…
Piero
  • 9,173
  • 18
  • 90
  • 160
0
votes
1 answer

how can i show the pdf hyper link data in popover in iPad apps?

i have worked pdf file reader in iPad apps using QLPreviewcontroller but i need to show the inside of pdf hyper link show on popover in iPad any one can help out. documentPath = [[NSBundle mainBundle] pathForResource:@"my_file" ofType:@"pdf"]; …
MOHAN.C
  • 315
  • 1
  • 11
0
votes
1 answer

NSMetadataQueryDidUpdateNotification called several time

i enabled iCloud UIDocument in my app, and i store document on the cloud, the document are packaged, for receive notification of update of the iCloud Document i'm doing this: - (void)startQuery { [self stopQuery]; NSLog(@"Starting to watch…
Piero
  • 9,173
  • 18
  • 90
  • 160
0
votes
1 answer

UIDocumentStateChangedNotification detect delete item

i want know if it's possible with the UIDocumentStateChangedNotification detect if an item is deleted, if not, how i can detect if a item is deleted from the cloud?
Piero
  • 9,173
  • 18
  • 90
  • 160
0
votes
1 answer

Store custom structure on iCloud UIDocument

i have searched a lot also here on SO but i haven't find a way to start what i want, in my app i want to save some custom object on iCloud, i think the best way is using UIDocument, this is the custom Object: @interface AppState :…
Piero
  • 9,173
  • 18
  • 90
  • 160
0
votes
1 answer

UIScrollView visibleRect versus pdf content location x, y

I'm having some trouble achieving the result I need. Using the method visibleRect of UIScrollView, and using the gesture recognizer, I can get where, in the screen, the user touched, or draw a rect, for example. Where I'm having some trouble is…
Rui Lopes
  • 2,562
  • 6
  • 34
  • 49
0
votes
1 answer

Using iCloud UIDocument with local SQLite

Yes, this is insane, adding more complexitiy to an already complicated problem. My use requires me to ideally use iCloud+Coredata and it famously fails badly. in iOS7 I wouldn't completely depend on it. So Im looking at what else can I do to get…
user134611
  • 766
  • 1
  • 11
  • 22
0
votes
1 answer

How can I use iCloud to synchronize a UIdocument files (saved in local document directory) between my apps?

I have an application that is saving the couple of UIDocumnet files in local document directory and display the UIdocument data. I want to sync this document directory folder (Each and every file saved locally) with icloud on Button Press Event. I…
roamingsoul
  • 93
  • 2
  • 12
0
votes
1 answer

Does UIDocumentSaveForCreating close the document after creation?

What is the behavior of [UIDocument saveToURL:forSaveOperation:completionHandler:] when invoked with UIDocumentSaveForCreating? Approach#1 - saveToURL: closes the document after save Then no need to close the document. MYDocument *document =…
neoneye
  • 50,398
  • 25
  • 166
  • 151
0
votes
1 answer

CoreData NSManagingContextDidSaveChangesNotification saves empty object iOS5

Before anyone suggests, we are using one managedObjectContext for [context save:&error]; We are saving a new object in Core Data with iOS5. The issue is, the first time we save a new object, NSManagingContextDidSaveChangesNotification fires and the…
0
votes
1 answer

Searching for files inside a directory using NSMetadataQuery

My app is using UIDocument + iCloud to create and view documents. The files are stored this way: Documents/Filename.db Documents/Filename.db/File.db (Filename.db is the directory) Files inside the Documents/Filename.db directory loads fine at its…
0
votes
0 answers

Failed to load UIDocuments in separate devices

I have created a UIDocument to wrap a custom object. The UIDocument is successfully saving to iCloud, and I am successfully loading each UIDocument when I run the app each time. However, when I attempt to run the app on a new device (iPhone 5) it…
bdparrish
  • 3,216
  • 3
  • 37
  • 58
0
votes
1 answer

How to load a UIDocument on the main queue?

I used to use plists to store my app's data, but I have decided to use UIDocument instead. The first view is a UITableView, and the corresponding UIDocument needs to be loaded before the view appears. I load and save my data in the app's delegate,…
Macro206
  • 2,143
  • 3
  • 19
  • 25
0
votes
0 answers

In iOS, can you open a file in another application without calling the "Open In" Menu?

Using UIDocumentInteractionController, I can open an "Open In" menu for a File URL. If there is only one application that can handle (viewer/editor) that type of file, three options are presented: The Viewer Application Mail Copy Is there a way I…
John Fowler
  • 3,173
  • 3
  • 18
  • 31
0
votes
1 answer

NSCFString _cfurl unrecognised selector sent to instance

I'm working with Core Data for ages. Currently I would like to learn more about UIManagedDocument. I've done several sample projects to learn more about it. Finally, I'm good to transfer this mechanism to the real projects. In the existing project,…
Anatoliy Gatt
  • 2,501
  • 3
  • 26
  • 42
1 2 3
17
18