Re: FileWrapper & iCloud
Re: FileWrapper & iCloud
- Subject: Re: FileWrapper & iCloud
- From: Gordon Apple <email@hidden>
- Date: Sat, 10 Nov 2012 15:36:05 -0600
- Thread-topic: FileWrapper & iCloud
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, "email@hidden"
<email@hidden> 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. :(
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden