Re: several questions about saving a bundle in an NSDocument based application
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