Re: Some files show lock icon
Re: Some files show lock icon
- Subject: Re: Some files show lock icon
- From: John Gee <email@hidden>
- Date: Tue, 2 Jun 2009 14:00:52 +1200
On 02/06/2009, at 04:33 , Ramakrishna Vavilala wrote:
My project has some files which show up with lock icon and every
time I edit them, I have to click on a confirm button that I want to
edit these files. After clicking on the button I can edit and save
the files fine. But is is annoying.
These files are not locked in Finder.
When you say "these files are not locked in the Finder", are you only
looking at the "Locked" checkbox in Get Info rather than the
permissions? Xcode shows the locked icon for files which are not user
writable too, to indicate that the file can not be saved without
overriding the permission on the file.
e.g.
-r-xr--r--@ 1 john admin 5319 27 Aug 2008 qBuild
So how can I turn off the locked or read only status in XCode.
1) An explicit way to unlock file from within Xcode is to click on the
lock displayed in the top right corner of the edit window. (This copes
with both the "Locked" checkbox in Finder, and with write permissions.)
2) Also, look in the Preferences under Text Editing and see if "Save
files as writable" is checked. If this checkbox is off then Xcode will
try and preserve the current permissions, so you keep getting prompted
after making the decision to make a change. With the checkbox turned
on then first time file is saved the permissions are changed so you
only get prompted first time.
--
John Gee, ADInstruments
Programmers live in interesting times...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden