- Didn't know my last name was in the Urban Dictionary: http://bit.ly/2Viyn0 – I'm even cooler than I though I was
#
Weekly Updates for 2009-09-20
Weekly Updates for 2009-09-06
- List of inventors killed by their own inventions: http://bit.ly/19utvl #
- Running 64bit Eclipse – because I can #snowleopard #
- neat trick: add a google translation bot to your chat(jabber/gtalk) client, e.g. en2de@bot.talk.google.com for english->german #
- TGIF #
- C64 emulator available at the appstore now, what's next? Amiga, NES, Dreamcast, Gameboy, pretty please? #
- #c64 #iphone too bad they disabled the Basic interpreter, let's hope that wasn't imposed by Apple #
Xcode Tips
I spend quite some time with Xcode lately. So this is partly a reminder for myself.
- When you create new class files the default template’s header comment includes a __MyCompanyName__ placeholder. The only way to configure it seems to be issuing this command in Terminal:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" = "brosinski.com";}' - CTRL+2 opens the symbol dropdown so you can quickly switch between functions
- Inserting
#pragma markallows you to add grouping descriptions to the symbol list, TODO: comments also show up there - Option + Command + up switches between header and implementation file
- Here is a nice cheat sheet for all Xcode keyboard shortcuts
You can also re-create your favorite key bindings by creating a file called PBKeyBinding.dict in ~/Library/KeyBindings/ and adding something like this:
{
"^$K" = (
"selectLine:",
"cut:"
);
"^$D" = (
"selectLine:",
"copy:",
"moveToEndOfLine:",
"insertNewline:",
"paste:"
);
}
This will enable CTRL+SHIFT+K to kill a line and CTRL+SHIFT+D to duplicate a line. Here is a nice description of how this system works.