• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FileWrapper & iCloud
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileWrapper & iCloud


  • Subject: Re: FileWrapper & iCloud
  • From: Mike Abdullah <email@hidden>
  • Date: Fri, 30 Nov 2012 00:43:36 +0000

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, "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. :(

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 (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


  • Follow-Ups:
    • Re: FileWrapper & iCloud
      • From: Sean McBride <email@hidden>
References: 
 >Re: FileWrapper & iCloud (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: split views, best practices for 10.8?
  • Next by Date: Re: FileWrapper & iCloud
  • Previous by thread: Re: FileWrapper & iCloud
  • Next by thread: Re: FileWrapper & iCloud
  • Index(es):
    • Date
    • Thread