Actually, the users are shown files in a NSTableView and they select a menu to 
encrypt/decrypt.  That's where I'll warn them.  Thanks for your suggestion.

On Mar 20, 2011, at 10:10 AM, Robert Martin wrote:

> Given all the problems I've seen raised in this thread, I was just thinking 
> that you might just implement the encryption in a droplet, or a drop window - 
> so users can choose when to encrypt rather than having the encryption 'done' 
> to them.
> 
> I just kept thinking about it, so thought I would mention it!
> 
> Rob
> 
> 
> On Mar 19, 2011, at 9:34 AM, Brad Stone wrote:
> 
>> Is there a way for me to tell if a particular file is open in another 
>> application?
>> 
>> I have a feature I'd like to provide to my users that involves encrypting 
>> files that belong to other apps (i.e. my application can encrypt/decrypt a 
>> Word or Excel file).  I want to prevent the user from encrypting or 
>> decrypting the file if it's open (i.e. the file is open in Word).  I would 
>> like to display a dialog box that says something like "myWord Doc.docx is 
>> open.  Please close it and continue."  I've found the ability to find 
>> running applications and I've found commentary that says what I'm asking for 
>> is not possible.  I couldn't find anything in NSWorkspace or NSFileManager 
>> to help unless there's a file attribute I don't know about that can tell me. 
>>  Any ideas?
>> 
>> Thanks in advance_______________________________________________
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/robmartin%40frontiernet.net
>> 
>> This email sent to robmar...@frontiernet.net
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to