• 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: Lock a file in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lock a file in cocoa


  • Subject: Re: Lock a file in cocoa
  • From: Ken Thomases <email@hidden>
  • Date: Sat, 20 Mar 2010 00:48:13 -0500

On Mar 19, 2010, at 1:36 PM, Charles Srstka wrote:

> On Mar 19, 2010, at 11:04 AM, Jens Alfke wrote:
>
>> On Mar 19, 2010, at 5:17 AM, Don Quixote de la Mancha wrote:
>>
>>> How long do you need to prevent its removal?  Just holding the file
>>> open should prevent it from being deleted.
>>
>> Yes, but not from being moved to the trash, which was the OP’s request. Actually I’m not sure the immutable bit prevents moving the file, either.
>
> It doesn’t. All it does is cause an annoying dialog box to pop up the next time the user tries to empty the Trash.

In my testing with the immutable bit on Snow Leopard 10.6.2, I get a dialog when I try to trash the item, not just when I try to empty the Trash.  Of course, the dialog allows me to proceed, anyway.

If I just try to move the item, the Finder insists on copying it, instead.  Even holding down Command, which would normally force a move operation, doesn't allow it to be moved.

Regards,
Ken

_______________________________________________

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

References: 
 >Lock a file in cocoa (From: Nikhil Khandelwal <email@hidden>)
 >Re: Lock a file in cocoa (From: Don Quixote de la Mancha <email@hidden>)
 >Re: Lock a file in cocoa (From: Jens Alfke <email@hidden>)
 >Re: Lock a file in cocoa (From: Charles Srstka <email@hidden>)

  • Prev by Date: NSUserDefaultsController valueForUndefinedKey:
  • Next by Date: Re: CoreData database sharing and migration
  • Previous by thread: Re: Lock a file in cocoa
  • Next by thread: Re: Lock a file in cocoa
  • Index(es):
    • Date
    • Thread