SDK headers should be non-writeable by default

Originator:sam
Number:rdar://12442517 Date Originated:
Status: Resolved:
Product:Developer Tools Product Version:Xcode45 (4G182)
Classification:Enhancement Reproducible:Always
 
Summary:

Occasionally I open a system header and accidentally modify it by typing before realising which file I'm in. Sometimes I then run or do something else which causes the header file to be saved.

Once this happens, Xcode reports problems with precompiled headers being out of date.

Really, the headers in the SDK folders shipped with Xcode should be locked. There's no typical reason to edit them, and we should be protected against doing it by accident.

An alternative would be to have Xcode detect this situation and warn the user that they were about to modify a system header.

Comments

Interesting... which version of XCode? Maybe they fixed it post 4.5?

Not reproducible here

If I open an SDK header (I had NSScrollView.h open coincidentally, so I tried that), and type one letter, Xcode puts up a sheet that says "NSScrollView.h is locked for editing...Do you want to unlock it?".


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!