Re: open file
Re: open file
- Subject: Re: open file
- From: Jeff Disher <email@hidden>
- Date: Fri, 29 Nov 2002 03:56:52 -0500
Not universally under Unix-based systems. There is a facility which
can be used for this (which some may argue is better than a universal
solution) which is the flock() function defined in <sys/file.h>.
Having personally never used it, I am not sure how useful it is or if
Cocoa file management routines use it or anything compatible with it.
You could do some testing with it to find out if nobody else on the
list knows for certain.
Hope that helps,
Jeff.
On Friday, November 29, 2002, at 03:39 AM, Alex Reynolds wrote:
Is there any way with NSFileHandle or another class to test whether a
file is open by another application?
-Alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Jeff Disher
President and Lead Developer of Spectral Class
Spectral Class: Shedding Light on Innovation
http://www.spectralclass.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >open file (From: Alex Reynolds <email@hidden>) |