tailieunhanh - Lập trình Wrox Professional Xcode 3 cho Mac OS part 22
Biểu tượng tên là biểu tượng hoàn chỉnh, đầy đủ, trong chương trình. Nếu bạn thực hiện tìm kiếm biểu tượng bằng cách sử dụng tùy chọn từ nguyên, tìm kiếm "openfile" sẽ không fi thứ các openfile phương pháp:, và "willUpdateCalculator:" sẽ không fi thứ các willUpdateCalculator phương pháp: tập tin:. | 172 CHAPTER 8 SEARCHING Symbol names are the complete fully qualified symbol in the program. If you perform a symbol search using the Whole Words option searching for openFile will not find the method openFile and willUpdateCalculator will not find the method willUpdateCalculator file . Use the Starts With or Contains option instead. The definition and symbol search modes only find literal references to symbols in your source code. For example if the preprocessor macro CHECKPOINT expanded to code that referred to the variable testcount a symbol search for testcount would not match a line containing the CHECKPOINT macro even though technically a testcount variable reference occurs at that point in the code. SEARCH HISTORY As you find and replace text in your project Xcode keeps a short history of the following Recently used search patterns Recently used replacement patterns The results of searches performed in the Project Find window Retrieving search history makes it easy to repeat a search or replacement that you ve previously done perform a new search that s a minor variation of a previous search and review search results even after the text that generated those results has changed. Recent Search Patterns and Replacement Text Both the single file search bar and the Project Find window keep a history of the recently used search patterns and the replacement text that was associated with it. Figure 8-2 showed the Recent Searches menu in the single file search bar. Figure 8-11 shows the recent search pattern menu in the Project Find window. No Editor if n nextMin nextMin- -i if n nextMin 11 nextMin -l Download at Find Results Smart Group 173 In the single file search bar previously used search and replacement patterns are paired choosing a previously used search pattern also recalls the replacement text it was associated with. The search pattern and replacement text fields in the Project Find window are independent of each other. You can .
đang nạp các trang xem trước