The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Omni Frameworks (http://forums.omnigroup.com/forumdisplay.php?f=16)
-   -   Updates for iOS 5 and using UIManagedDocument (http://forums.omnigroup.com/showthread.php?t=22346)

bayarea_nerdz 2011-10-12 12:06 PM

Updates for iOS 5 and using UIManagedDocument
 
Thanks for pushing the later framework updates at GitHub. It looks like you have done some great work for iOS 5 compatibility! FYI, I was able to build from scratch and get it the "TextEditor" sample iPad app working (I just had to comment out the stuff about FixStringsFile, which wasn't getting created for some reason).

One question: it's nice that OUIDocument now extends UIDocument, but what if I want to use a UIManagedDocument so I can persist using Core Data? Do you think I could just swap out the UIDocument with UIManagedDocument and it would magically work?

Alternatively, have you through about moving the OUIDocument functionality into a category on UIDocument so people can use any UIDocument subclass they want? There isn't much state in OUIDocument, so perhaps it could be implemented via a delegate that the UIDocument subclass is required to maintain?

Tim Wood 2011-10-13 07:36 AM

We haven't yet done any work with UIManagedDocument, so either of the approaches you may mention could work, or might not. Certainly you are right that as part of this we've reduced the state in OUIDocument significantly -- we might be able to move some or all of it to being a category on UIDocument. Even then though, we might find that the category doesn't make sense in the context of UIManagedDocument.


All times are GMT -8. The time now is 04:03 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.