• 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: open file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: open file
  • Next by Date: Re: Text Color in NSButton?
  • Previous by thread: open file
  • Next by thread: Re: open file
  • Index(es):
    • Date
    • Thread