O'Reilly logo

Mastering Xcode: Develop and Design, Second Edition by Joshua Nozzi, Maurice Kelly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Advanced Editing

In Chapter 5, you explored the Source editor and some of its features. In this chapter, you’ll explore a few more powerful features and familiarize yourself with some additional tips and tricks to make better use of the editor.

Renaming Symbols

The Edit All in Scope command is a simple and often overlooked editor feature. As its name suggests, you can edit a symbol name and automatically change each instance of it within the current scope at the same time.

Consider a local variable named bob. You’ve decided a variable should sound more formal, so you want to change bob to robert. Assuming bob is reused throughout the current scope of a long method, it would be tedious and error-prone to find and rename each instance, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required