Re: Dir of app
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