Re: About Document Packages
Re: About Document Packages
- Subject: Re: About Document Packages
- From: Kevin Ballard <email@hidden>
- Date: Fri, 11 Feb 2005 16:49:18 -0500
I don't have Xcode open right now, so I can't check, but isn't there a
writeToFile:atomically: method? That way you could do non-atomic writes
to get around this issue.
On Feb 11, 2005, at 4:40 PM, Seth Willits wrote:
Ahhh... I found one hitch. writeToFile works atomically. So if my
SQLite database is in the package, when I go to save, it moves it
elsewhere, and expects me to write the file again which I obviously
don't want to do (nor could I don't think). I suppose I could use
- (BOOL)writeToFile:(NSString *)fullDocumentPath ofType:(NSString
*)docType originalFile:(NSString *)fullOriginalDocumentPath
saveOperation:(NSSaveOperationType)saveOperationType
to find the database inside of the original package, and copy it into
the new one, but that will kill my existing connection to the
database. I suppose I could simply work around that, but this seems
kind of odd.
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden