Xcode tips and tricks — fast method finding
July 14th, 2006 at 8:23 am (trackback)
Inside of Xcode, I’ll want to quickly go to a method implementation. If you hit Cmd-F and do a find for the method name (or the start of it), you will frequently get hits for calls of the method instead of just the implementation.
There is a quick way to find the implementation: Hit Cmd-F and type: “)methodNameâ€.

The left paren will match only the implementation (provided you don’t put a space after it…which you shouldn’t do anyways).
I picked up this little tidbit by watching Troy Stephens code around. Thanks Troy!
This entry was posted
on Friday, July 14th, 2006 at 8:23 am and is filed under Apple, Cocoa, General.
You can follow any responses to this entry through the
RSS 2.0 feed.
Both comments and pings are currently closed.








July 14th, 2006 at 8:27 am
Hmm… no accounting for taste :)
July 14th, 2006 at 8:39 am
I know… I know..personal coding style differs from person to person. In the AppKit group, we tend to prefer not having the space.
July 14th, 2006 at 9:17 am
It’s interesting to see this mentioned – since my earliest days of using text editors, little tricks like this are how I’ve survived. :-) People are usually amazed to see me blazing through any type of structured text document … “How do you do that so fast?!” and I always try to tell them things like this, if you think them through first, usually work well. In the case of not putting a space, it would still work however your style looks, provided you’re consistent. :-)
July 14th, 2006 at 10:59 pm
Hey Corbin,
You aware of the control-2 keyboard shortcut in Xcode? It moves focus to the function popup, from which you can use type-select.
July 15th, 2006 at 8:33 pm
Hi Ken,
i wasn’t aware of that! but i do find the ctrl-key rather hard to hit with 2; it is in an akward position, especially on a mac/powerbook.
July 17th, 2006 at 5:33 am
Very cool – I didn’t know about that shortcut, either. For what it’s worth, the shortcut is modifiable through Xcode preferences. Under “Text Key Bindings” it’s called “Pop Symbols PopUp.”