Re: List of open documents
Re: List of open documents
- Subject: Re: List of open documents
- From: Rich Collyer <email@hidden>
- Date: Wed, 25 Mar 2009 05:14:04 -0700
I do need to look at more than NSDocuments and lsof seem to also be
close but missed some documents.
How about...
I have a list of open applications (PSN and therefore PID) and I would
like to ask each if they have any open documents and what the paths
are for those open documents. I know that some applications will
respond to applescripts with this information, but how about objective-
c?
+++++++++++++++++++++++
Rich Collyer - Senior Software Engineer
email@hidden
IronKey - The World's Most Secure Flash Drive
2008 SC Magazine Readers Choice Award Winner
2008 FOSE Best of Show Winner
2007 GCN Labs Reviewers Choice Winner
+++++++++++++++++++++++
On Mar 24, 2009, at 3:39 PM, I. Savant wrote:
On Mar 24, 2009, at 6:31 PM, Luke the Hiesterman wrote:
http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man8/lsof.8.html
On Mar 24, 2009, at 3:27 PM, Rich Collyer wrote:
I am looking for a clean way to find all open documents and their
associated paths.
In addition to this (breaking the app barrier), if you're only
looking for all *NSDocument* subclass instances open in your Cocoa
document-based application, ask the [NSDocumentController
sharedDocumentController] would be a great place to look.
--
I.S.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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