• 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: Dir of app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dir of app


  • Subject: Re: Dir of app
  • From: "Wesley Smith" <email@hidden>
  • Date: Tue, 18 Dec 2007 23:48:40 -0800

> > Why would I get a UKKQueueFileDeletedNotification after a
> > UKKQueueFileAttributesChangedNotification?  That seems odd to me and
> > if I hadn't known better I would have naively programmed logic in my
> > app thinking that the file no longer existed but it is definitely
> > still there. Any clues?
>
> Very likely safe-save. There is support to save a file and swap its
> name and file-id before deleting the old file. This way, if the save
> fails in the middle (say you loose power) the original file is still
> on the disk. The new file only becomes the old file after the data has
> been written out (probably to the cache -- not necessarily the disk,
> unless the app actual forces a flush).
>

Ah.  This makes sense.  So are there properties of the file in
question I can query to keep track of all of this?

thanks again,
wes
_______________________________________________

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

References: 
 >Re: Dir of app (From: Gregory Weston <email@hidden>)
 >Re: Dir of app (From: "Wesley Smith" <email@hidden>)
 >Re: Dir of app (From: Alan Pearson <email@hidden>)
 >Re: Dir of app (From: "Wesley Smith" <email@hidden>)

  • Prev by Date: Re: Dir of app
  • Next by Date: Re: CoreData huge memory usage - is this right ?
  • Previous by thread: Re: Dir of app
  • Next by thread: Cocoa, Java and JavaScript (Rhino)
  • Index(es):
    • Date
    • Thread