• 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: Using a document bundle file type with core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using a document bundle file type with core data


  • Subject: Re: Using a document bundle file type with core data
  • From: David Brittain <email@hidden>
  • Date: Wed, 16 Jan 2013 19:38:40 -0800

The code in this blog article enables saving core data files to a package:

http://cutecoder.org/featured/asynchronous-core-data-document/

Take a look at the writeSafelyToURL implementation in the gist at the
bottom. I haven't tried saving to a bundle myself, but found the
article helped me solve some problems with core data and documents.

Dave

On Wed, Jan 16, 2013 at 7:25 PM, Eric Gorr <email@hidden> wrote:
> I've got a sample project at:
>
> http://ericgorr.net/cocoadev/docbundleCD.zip
>
> Basically, what I am attempting to do should be fairly standard and simple, but I am apparently missing something obvious. I only want to be able to define my document type as a document bundle and place a Core Data file inside.
>
> Clearly, my sample project is incomplete, but the start of any such project would require that the -fileWrapperOfType:error: method be called and it isn't despite the fact that I have set LSTypeIsPackage to YES for my document type - which is what I have done in the past for situations such as this, but they did not involve Core Data.
>
> Any thoughts?
>
> If there are any sample projects or tutorials, I would be interested as well.
>
> Thank you.
>
>
>
>
>
>
>
> _______________________________________________
>
> 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
>



--
David Brittain
email@hidden

_______________________________________________

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: Using a document bundle file type with core data
      • From: Mike Abdullah <email@hidden>
    • Re: Using a document bundle file type with core data
      • From: Eric Gorr <email@hidden>
References: 
 >Using a document bundle file type with core data (From: Eric Gorr <email@hidden>)

  • Prev by Date: Using a document bundle file type with core data
  • Next by Date: Re: Using a document bundle file type with core data
  • Previous by thread: Using a document bundle file type with core data
  • Next by thread: Re: Using a document bundle file type with core data
  • Index(es):
    • Date
    • Thread