Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Objective-C Basics (Retired) Pointers and Memory Structs

Chee Mervin
PLUS
Chee Mervin
Courses Plus Student 4,195 Points

Colour coded text in with regards to after declaring a struct item.

Hi guys, with regards to this video, I understand that after the "Sphere" struct is declared, and usage of "Sphere", "centre", and "radius" take on a turquoise colour. Does this only happen in structs? Or are there other situations where this happens? And when the text does turn turquoise, what does it represent?

Cheers

  • mervin

2 Answers

Chee,

The color coding of text depends on the text editor and the specifc settings for the text editor. There are a variety of themes available for xcode and the syntax highlighting will be differnet with each theme. The turquoise color is being used for class names and instance variables in this video (this is the default setting). If you look in xcode under Preferences - > Fonts and Colors you can see what color(s) the objective-c syntax will be shown in depending upon the theme. For example constants, type names, methods and function names will all appear in turquoise. The highlighting is just for you, the developer, to more easily recognize objective-c's keywords and syntax.

Chee Mervin
PLUS
Chee Mervin
Courses Plus Student 4,195 Points

Hi Dennis. thanks so much for the reply. Sorry for the late reply, was fighting off the deadlines with a limited coffee supply.

Cheers

  • Mervin