Possible Duplicate:
xcode code sense color/completion not working
Code loses syntax color in Xcode 4
In my project, some files have syntax coloring and completions, but in some files (both .h and .m), it's not working. Any ideas?
Possible Duplicate:
xcode code sense color/completion not working
Code loses syntax color in Xcode 4
In my project, some files have syntax coloring and completions, but in some files (both .h and .m), it's not working. Any ideas?
Go to your organizer and in the projects tab find your project and click "Delete Derived Data" this forces XCode to reindex everything and does not hurt anything. It usually does the trick for me although sometimes XCode is just troublesome.
Either those files are newly created files and you forgot to add them to a target (your app's target) to them while adding them to your project or it's Xcode's usual index problems.
For case 1:
Select one of those unindexed files and open the File Inspector. Below on target membership, check the box of your target. Clean and build. Restarting Xcode won't hurt.
For case 2:
Refer to Dancreek's answer.