changed all to NSView