• 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: Monitor opened files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monitor opened files


  • Subject: Re: Monitor opened files
  • From: "Philip Q" <email@hidden>
  • Date: Sun, 29 Apr 2007 23:08:55 +1200

On 29/04/07, Daniel <email@hidden> wrote:
it is the first time I work with Cocoa and I wanted to know if there
is a way to launch a second application from the running one (and for
that I have found something) _and_ additionally being able to montior
this process/application in such a way to know exactly which file it
has opened for writing, which one he has created.


Creating a child process is pretty simple using NSTask (although, is there a specific reason you want to use a child process and not a thread?).

However, getting a list of the open files is not a trivial task if you
want to do it programmatically and there isn't a way to do it without
digging pretty deep. What are you trying to accomplish with this?
Perhaps you don't actually need to get a list of open files.

-Phil
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Monitor opened files
      • From: Sherm Pendley <email@hidden>
References: 
 >Monitor opened files (From: Daniel <email@hidden>)

  • Prev by Date: Re: How to draw a rectangle around a (graph) view?
  • Next by Date: Re: Monitor opened files
  • Previous by thread: Monitor opened files
  • Next by thread: Re: Monitor opened files
  • Index(es):
    • Date
    • Thread