Fix typename arguments.
Fix cocoa window delegate.