• 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: 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

  • Follow-Ups:
    • Re: About Document Packages
      • From: Seth Willits <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>)
 >Re: About Document Packages (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: About Document Packages
  • Next by Date: set desktop background image?
  • Previous by thread: Re: About Document Packages
  • Next by thread: Re: About Document Packages
  • Index(es):
    • Date
    • Thread