I agree with Mark Pilgrim: http://diveintomark.org/archives/2007/01/21/wrongroom
Here's the basic problem: you're writing a text editor. Stop doing that. It's 2007. Saying to yourself "I'm gonna build my own text editor" is as silly as saying "I'm gonna build my own build system" or "I'm gonna build my own amusement park."