PB Newbie Again
PB Newbie Again
- Subject: PB Newbie Again
- From: Paul Summermatter <email@hidden>
- Date: Mon, 06 Jul 2009 20:42:15 -0400
Folks,
After about a 7 year hiatus, I'm actively using PB/XCode again. My
history with PB dates back to circa 1994, so, I'm not actually a
newbie, but I have a bunch of newbie questions that I've accumulated
over the last few weeks and have been unable to answer with Google
searches and reviews of the mailing lists. I figured that, rather
than flooding the list with a bunch of separate e-mails, I would
compile a single e-mail with a bunch of individual points. Any
guidance on these issues would be very much appreciated.
1) Key Bindings: I see that there is now a Preferences GUI for key
bindings, but I cannot figure out how to bind multiple keys to the
menu items. For example, I'm an emacs hacker, and I would like to
bind Ctrl-XS to save and Ctrl-XU to undo. I see in the text key
bindings that there are multi-key bindings like this (Ctrl-XX is one
example), but I cannot figure out how to enter these values through
the GUI. I looked at the .pbxkeys file that XCode created in ~/
Library/Application Support/XCode/Key Bindings, and I tried to edit it
by hand to have the following in the "menu" dict:
<key>^x</key>
<dict>
<key>u</key>
<string>undo:</string>
</dict>
but this did not work. When I launched XCode and opened the Key
Bindings preference, the Undo menu command had no key bindings
associated with it (Not even the Command-Z which I left alone).
Should this work? Might I have just made a typo somewhere?
2) File Templates: I've read on the web about how to do this, but I
have to assume that there is a better way than jumping through the
flaming hoops people have described. Every other modern IDE that I've
used has very well integrated template creation, but I don't see
anything in the Preferences panel, so maybe I really do have to dig
around in the /Developer directory for the XCode file templates and
edit them by hand and/or muck with system defaults from the command
line to get things like my company name set properly. If someone
could point me to the official Apple documentation on this topic, I
would appreciate it.
3) Windows: It seems like too many components of this application are
split out into separate windows: Main Project window, Compiler window,
Debugger stack frames and vars window, Debugger console window, Doc
window, etc. Within a few minutes of using the app, I have a panoply
of windows scattered all over the place, and I get lost very quickly.
Again, I would hark back to other IDEs (like IDEA and Eclipse), where
windows can be broken out but are, by default, nicely organized in a
single view with efficient use of tabs/collapsable regions that appear/
disappear as needed. Is any of this possible with XCode?
4) Code Analysis: XCode, like PB, does not seem to do any real time
code analysis at all. My experience developing in IDEA for the last 7
years has made me appreciate the extremely beneficial aspects of live
code analysis. Highlighting syntax errors is just the start of this,
but I would be happy to have just that. Is it possible to turn on
Code Analysis in XCode or are there custom add ons that will do this?
5) Unit Test stats: When I run unit tests, all I seem to be able to
get for output is text in the build window. Is there nothing like the
JUnit integration in IDEA and Eclipse where you see, in graphical
form, the tests that were run along with which were successful and
which failed? I would be happy just to have a count of the total
number of tests run/passed, but I cannot seem to even find that. Have
any custom bundles been written to parse the output from the build
(which seems to include everything that's needed) and display the
information graphically?
6) Code Coverage: Are there any options for doing code coverage? I
manage a reasonably large team of developers (and consultant
developers), and it's a crucial part of our code reviews to first look
at the code coverage output to ensure that all critical sections of
code are properly covered by unit tests. I see that there is this
very cool looking app called Instruments, but I haven't found how/if I
can gather code coverage information from the app like I can with a
tool such as Emma. Basically, if I have code with, for example, an if/
else, and I write unit tests, I want to make sure the tests cover all
scenarios of both branches of the if/else.
As an aside, if any of the Apple XCode developers monitor this list,
I have to say that I very much like the code completion features in
XCode. I cannot seem to figure out how to tab through parameters when
a method is the target of a completion, but I find the completion to
work very quickly and very intelligently. One suggestion I would have
is to take a page from other IDEs and allow what they call humped
completion. So, let's say you have a method called
updateUsersZipCodeFromAddress. If you type in uUZCFA, the completion
engine recognizes that you are typing just the humps of the method and
matches accordingly.
Regards,
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden