Pixel Grid Tyler is a small app for creating repeating image (pattern) in pixel-art. It's allow to set size of tile, set colors of background, borders and shadow and disable shadows.
If you are programmer this app code may be usefull to understand drawing in Cocoa (and building and implementation classes following the MVC).