Rich Rich is an example OS X application demonstrating custom rich-text controls. Questions? Improvement ideas? Open an issue.