September 27, 2009 - Tags:

Weekly Updates for 2009-09-27

  • "We are here on earth to do good for others. What the others are here for, I don't know." W.H.Auden #quote #42 #
  • #iphone SDK rocks, took me 30min to build "export data as CSV + let user email it as attachment to any address" feature #
September 20, 2009 - Tags:

Weekly Updates for 2009-09-20

  • Didn't know my last name was in the Urban Dictionary: http://bit.ly/2Viyn0 – I'm even cooler than I though I was ;-) #
September 13, 2009 - Tags:

Weekly Updates for 2009-09-13

  • RT @jkottke I hate the web. It reminds me of all the interesting books I won't read, places I won't visit, ideas I'll never understand #
  • Got my first little #iphone app running on an actual phone. Feels much realer than testing on the simulator. #
September 6, 2009 - Tags:

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 #
September 4, 2009 - Tags: ,

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 mark allows 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.

(C) 2008 - Stephan Brosinski - All Rights Reserved