Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to View Comments in the Method Navigator of Xcode 4?

Does anyone know how to view comments in the method navigator in Xcode 4

In Xcode 3 these would put comments like:

???: Huh?
!!!: Woah
MARK: Aliens
TODO: Fix this

in here...

enter image description here

like image 759
Aaronium112 Avatar asked Dec 09 '25 23:12

Aaronium112


1 Answers

You can still use // ???:, // FIXME: and // TODO: comments outside of methods to get the comment to pop up in the method navigator.

I know that some people would like these type of comments within methods to still show up in the method navigator and that there is a bug report filed against this, but I actually like this bug, as it forces me to keep my methods clean. I find that putting the // TODO:, etc., above the method creates better code readability.

Just my opinion.

like image 174
rich.e Avatar answered Dec 11 '25 12:12

rich.e



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!