Re: Is a file open in another application?
Re: Is a file open in another application?
- Subject: Re: Is a file open in another application?
- From: Kyle Sluder <email@hidden>
- Date: Sun, 20 Mar 2011 12:13:15 -0700
On Sun, Mar 20, 2011 at 11:59 AM, Quincey Morris
<email@hidden> wrote:
> Second, if you're providing a list, you'll have to make sure that you know where to find the *current* (i.e. last saved) version of the file, in case the file gets saved since the list was constructed. In many cases, the file system identity of the file is preserved by the end of the save process**, although the details are going to vary by application. Presumably you'll have some kind of alias or URL bookmark to get this right.
In some normal use cases, files don't even keep the same name when
saved. For example, saving a rich text document in TextEdit produces
an .rtf file, but if you add pictures and re-save it deletes the .rtf
file and saves a .rtfd document package instead. So the same document
doesn't even keep the same on-disk name after save.
OmniGraffle has the same behavior if the "Compress on disk" checkbox
on the Document tab of the Document inspector is unchecked, but it
uses .graffle for both flat files and document packages. So saving
your document might convert its on-disk representation from a file to
a directory.
--Kyle Sluder
_______________________________________________
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