##An extension method for NSWindow to shake it
If your app has a login view or requires user credentials then this extension method will be very useful to you. When you detect an error with the credentials provided, simply call the following:
this.Window.Shake();
The window will then shake 3 times (as per the default OS X login view).