Saturday, October 25, 2008

Cocoa: Image Pattern as NSView Background

I Really like Apple Mail Note Editor, and today I've tried to do something like notes of

Mail uses html and css loaded into a WebView (WebKit) to render the background of the window. I've used a simple NSView, I've Inherited from it and I've added a couple of feature to render an image as background pattern. Below you can see the result and here you can Download the Source.


  1. Thank you for this code. It's simple, but it works. Do you have a license for it, or is it public domain?

  2. Hi, check the "Source Code" page. But all the code that you can find here, you can modify and reuse.