• 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: About Document Packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: About Document Packages
      • From: Kevin Ballard <email@hidden>
References: 
 >About Document Packages (From: Seth Willits <email@hidden>)
 >Re: About Document Packages (From: Kevin Ballard <email@hidden>)
 >Re: About Document Packages (From: Seth Willits <email@hidden>)

  • Prev by Date: NSMatrix and NSImageCell and Bindings
  • Next by Date: Re: About Document Packages
  • Previous by thread: Re: About Document Packages
  • Next by thread: Re: About Document Packages
  • Index(es):
    • Date
    • Thread