Graphics Programs Reference
In-Depth Information
Analysis results appear in the issue navigator. You will see one Logic error in your code at
the return point of numberOfLines . The analyzer believes there is a code path that will
result in an undefined or garbage value being returned to the caller. In English, that means
it is possible that the variable count will not be given a value before it is returned from
numberOfLines .
Figure 21.2 Analyzer results
The analyzer can show us how it came to this conclusion. Click the disclosure button next
to the analyzer result to reveal the detailed information underneath it. Click the item un-
derneath the disclosure button. In the editor area, curvy blue lines will appear inside the
numberOfLines method ( Figure 21.3 ). (If you don't see line numbers in the gutter, you
can turn them on by selecting Preferences from the Xcode menu. Choose the Text Editing
tab and click the checkbox Show Line Numbers .)
Figure 21.3 Expanded analysis
 
Search WWH ::




Custom Search