My iPod locked up today. No button worked. It just stopped
mid-song (Way Out West's "Sequoia"). I now know that when this
happens all you do is connect the iPod up to the power, toggle
the HOLD switch and then press and hold the MENU and PLAY
buttons until the Apple logo appears. no panic
needed.
I have been able to use Xcode
some more. I decided to just convert a really old (one of my
first) OpenGL program across from Windows. It uses GLUT and
performs some scrolling with some game style information
displays.
The big difference between the VisualC.NET code and Xcode
code is that in VisualC.NET I " #include
"gl/glut.h" " and in Xcode I " #include
"GLut/glut.h" ".
Some mistakes also work in VisualC.NET but not in Xcode.
For example I had made a mistake in the code that didn't cause
any problems in VisualC.NET:
class
Target
{
public:
enum{
TARGET_RED,
TARGET_GREEN,
TARGET_YELLOW,
};
Target()
{
CurrentColour
=
Target.TARGET_RED;
}
~Target()
{
}
}
In Xcode I removed the " Target.
" to fix the problem, in VisualC.NET I made the mistake of
using the " . ", which should have
been a " :: ", or no class prefix at
all. I guess Xcode is a little more strict, if so then
good!
I was quite content using Xcode today.however, when I tried
to remove a file from the project it took me a bit of time to
find that you can only delete a file from the "Sources" part
of the project tree and not just anywhere the file
appears.
I like how I can press Option + Apple + Up
Arrow to switch between source and header, this means that
I do not have to leve the keyboard for this. It would be nice
to be able go to a member function implementation by using one
of the editor's dropdown list, they all seem to go to the
definition in the header file instead, if you are in the
implementation file then the dropdown list takes you to the
implementation. A good feature would be to select the function
in a header file and the press a key combination or a button
to go to the implementation of that function, if it exists.
The reverse of this should also be available, go to the
function definition from the implementation. This would make
coding less cumbersome, not that Xcode is cumbersome
however!
I have yet to explore the smart lists feature in the
project tree.
I quite like the how Xcode shows the output window while
building. It has led me to layout my Xcode display in the
following way:
My current Xcode screen layout (large).
All my project
information on the left, my source files in the middle and
errors and warnings to the right. While using the Xcode editor
I had to use (obviously) the keyboard a bit more and found
that I occasionally look for page up and down
keys, as well as home and end keys. It gets a
little awkward sometimes while typing in any application when
my thumb accidentally taps the trackpad and the cursor moves
an my typing appears in the wrong spot. The cursor keys
are smaller than I am used to. After using the keyboard a
little more I also used
uControl
to remap the little enter key to fn/function, it
was previously mapped to ctrl/control. The keyboard is
not instantly usable for a programmer who is used to IBM
keyboards.
As an aside: I did not complete my port
today.