It's a CGRect, not an NSRect.

Been doing too much AppKit recently it seems.