• 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: several questions about saving a bundle in an NSDocument based application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: several questions about saving a bundle in an NSDocument based application


  • Subject: Re: several questions about saving a bundle in an NSDocument based application
  • From: Michael Ash <email@hidden>
  • Date: Tue, 2 Jun 2009 00:43:44 -0400

On Tue, Jun 2, 2009 at 12:39 AM, Graham Cox <email@hidden> wrote:
>
> On 02/06/2009, at 11:40 AM, Matthew Jeorrett wrote:
>
>> I have successfully implemented the NSDocument architecture in my
>> application and have implemented saving and loading documents by overriding
>> the "dataOfType:error:" and "readFromData:ofType:error:"; methods. I now want
>> to be able to export my document into a folder selected by the user.  The
>> items I will be putting in the folder are a few png images and a plain text
>> file.  I have created a new package document type in the build target
>> properties with the role value set as none.  The first gap in my knowledge
>> is what the store type should be?
>
> I would guess 'binary' if you're writing out the content yourself. I'm not
> sure where this setting is used, it doesn't actually seem to make any
> difference.

Store type only matters for NSPersistentDocument (CoreData)
applications. If you're handling your own storage then this field is
ignored, so you can set it to whatever makes you happy.

Mike
_______________________________________________

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

References: 
 >several questions about saving a bundle in an NSDocument based application (From: Matthew Jeorrett <email@hidden>)
 >Re: several questions about saving a bundle in an NSDocument based application (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: several questions about saving a bundle in an NSDocument based application
  • Next by Date: Re: NSToolbar: notification of change?
  • Previous by thread: Re: several questions about saving a bundle in an NSDocument based application
  • Next by thread: Odd crash only when Toast running
  • Index(es):
    • Date
    • Thread