• 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: Is a file open in another application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is a file open in another application?


  • Subject: Re: Is a file open in another application?
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 19 Mar 2011 12:03:23 -0700

On Sat, Mar 19, 2011 at 11:40 AM, Conrad Shultz
<email@hidden> wrote:
> Are you certain that is a general behavior?

1. Open TextEdit.
2. Type some stuff.
3. Save As > /tmp/somefile.rtf
4. `lsof |grep somefile` prints nothing.

> For example, I have Preview open right now, and it very much lists all
> its open files:

Preview probably mmaps the file contents. And that could even be done
by PDFKit or NSImage, not explicitly by the application.

> But it does seem from the above that this can be handled in an
> implementation-specific manner, no?  (Please forgive my ignorance, I
> develop mostly with iOS.)

I don't think a general solution exists for Brad's problem.

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

  • Follow-Ups:
    • Re: Is a file open in another application?
      • From: Frédéric Testuz <email@hidden>
References: 
 >Is a file open in another application? (From: Brad Stone <email@hidden>)
 >Re: Is a file open in another application? (From: Conrad Shultz <email@hidden>)
 >Re: Is a file open in another application? (From: Kyle Sluder <email@hidden>)
 >Re: Is a file open in another application? (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: Icon not bouncing in Dock when App started
  • Next by Date: Re: Is a file open in another application?
  • Previous by thread: Re: Is a file open in another application?
  • Next by thread: Re: Is a file open in another application?
  • Index(es):
    • Date
    • Thread