Re: document inexplicably becomes locked and fails to save under sandboxing
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