Nice good old tutorial I found and modified to use transparency (Cocoa).