tags:

views:

55

answers:

1

Xcode search just isn't working the way I expect it to. What am I doing wrong?

  1. "Project Find" (cmd-shift-F) often turns up zero results when I KNOW that there are valid hits. For example, searching for "Search Results" (no quotes) ironically returns 0 hits, even though I have a .m project file open with the string @"Search Results" sitting right in front of me. My Find Options are set as loosely as i can make then, case-insensitive, Search In Open Projects, All Candidate Files, All Files in this Project, etc.

  2. The Search bar in the upper right of my main project window doesn't seem to behave like Project Find, nor does it seem to search the currently open document. What does it do?

  3. Searching for "UIView" in the Help menu search turns up zero hits, even though if I open up the Developer Documentation from the Help menu and search from that window it returns plenty of hits.

+1  A: 

Help menu searches only for menu entries (try searching for "Paste") and end-user documentation (how to use the software itself, not how to develop it).

Use documentation viewer to search within developer documentation (it lets you switch between fulltext and API names search, select OS version and language).

Check what options you've set in project search – it might be set to match whole identifiers only, be case-sensitive, search only selected files, etc.

Select:

  • In Project
  • Textual
  • Contains
  • Ignore case

Uncheck:

  • Display Resutlts in Find Smart Group
porneL