> 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 (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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com