• 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: document inexplicably becomes locked and fails to save under sandboxing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: document inexplicably becomes locked and fails to save under sandboxing


  • Subject: Re: document inexplicably becomes locked and fails to save under sandboxing
  • From: Martin Wierschin <email@hidden>
  • Date: Thu, 12 Jun 2014 14:55:55 -0700

> I don’t know whether this is relevant to your issue, but for what it’s worth, (a) I have had a problem with OS X mysteriously locking files as result of the file being set to "user immutable”, and (b) I know that the autosave functionality in NSDocument interacts with the immutable setting.
>
> In my case, the solution was just to do:
>    [path setResourceValue:[NSNumber numberWithBool:NO] forKey:NSURLIsUserImmutableKey error:nil];


Thank you Sandy for pointing this out as a possible factor. We do indeed opt-in to NSDocument's autosaving machinery by returning YES from +autosavesInPlace. Unfortunately setting the key NSURLIsUserImmutableKey to @NO does not solve our particular problem.

Thanks all the same for sharing your experience.

Best,
~Martin Wierschin


_______________________________________________

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: 
 >document inexplicably becomes locked and fails to save under sandboxing (From: Martin Wierschin <email@hidden>)
 >Re: document inexplicably becomes locked and fails to save under sandboxing (From: SevenBits <email@hidden>)
 >Re: document inexplicably becomes locked and fails to save under sandboxing (From: Martin Wierschin <email@hidden>)
 >Re: document inexplicably becomes locked and fails to save under sandboxing (From: Martin Wierschin <email@hidden>)
 >Re: document inexplicably becomes locked and fails to save under sandboxing (From: Martin Wierschin <email@hidden>)
 >Re: document inexplicably becomes locked and fails to save under sandboxing (From: Sandy McGuffog <email@hidden>)

  • Prev by Date: Re: Debugging Swift
  • Next by Date: NSFileHandle stdin sends ∞ notifications of 0 bytes available
  • Previous by thread: Re: document inexplicably becomes locked and fails to save under sandboxing
  • Next by thread: UIKit and Swift
  • Index(es):
    • Date
    • Thread