On 10 Nov 2012, at 21:36, Gordon Apple wrote:

> I don¹t know about iCloud, but I finally got file wrappers working for my
> NSPersistentDocument subclass.  It wasn¹t easy.  I use a separate folder for
> stored files, sibling to my coreData storage, in the same package.  I based
> it losely on the NSPersistentDocumentFileWrappers sample, then let my ³File²
> entity objects handle the creation and use of the folder.  For ³saveAs² I
> had it copy the folder (if it exists) to the new location after it did the
> coreData and file package stuff.
> 
> 
> On 11/10/12 2:00 PM, "cocoa-dev-requ...@lists.apple.com"
> <cocoa-dev-requ...@lists.apple.com> wrote:
> 
>> On Sat, 10 Nov 2012 18:09:58 +0000, Luke Hiesterman said: >File wrappers 
>> don't
>> make it inherently easier or harder to deal with >iCloud. File packages 
>> (which
>> you would use file wrappers to represent) >can be elegant means of wrapping 
>> up
>> document data because it allows for >easy separation of distinct components,
>> and are usually recommended if >they at all make sense for your application.
>> Unless you use NSPersistentDocument, which still, after all these years, and
>> even after the addition of 'external storage' support in 10.7, doesn't 
>> support
>> file wrappers. :(

With all the different features of the document system these days, it can be 
pretty hard to slot them all in nicely with Core Data. People may find 
https://github.com/karelia/BSManagedDocument pretty handy for this (the real 
meat is in the header file at present)


_______________________________________________

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