Re: About Document Packages
Re: About Document Packages
- Subject: Re: About Document Packages
- From: Seth Willits <email@hidden>
- Date: Fri, 11 Feb 2005 13:40:09 -0800
On Feb 11, 2005, at 1:30 PM, Seth Willits wrote:
Right now I'm going the writeToFile and readFromFile route. If anyone
with any experience found an easier or smarter way I'd like to hear
about it, but this should work.
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.
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
"Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former."
-- Albert Einstein
------------------------------------------------------------------------
---
_______________________________________________
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