Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode variable coloring

Tags:

xcode

When I'm typing out new instance variables, they appear white. To turn them green, I do a space/backspace between the semicolon. Is there an XCode secret to automatically going through all of my classes and recognize the variables it has missed?

Something similar happens with the orange #define variables used throughout code too.

colors screenshot

UPDATE: This problem appears to be solved in xcode 3.2 with snow leopard.

like image 494
ojreadmore Avatar asked Nov 06 '22 20:11

ojreadmore


2 Answers

To do this for a single file I usually select all text, cut, and paste it (cmd-A, cmd-X, cmd-V).

Make sure you've saved the header file with the instance variable first.

like image 51
Lawrence Johnston Avatar answered Nov 15 '22 13:11

Lawrence Johnston


Xcode is rather fail that way. I hope they fix this in Snow Leopard.

like image 39
Jonathan Sterling Avatar answered Nov 15 '22 13:11

Jonathan Sterling