Einhugur macOS Bridge plugin. |

# NSView.InitWithFrame Method

Initializes and returns a newly allocated NSView object with a specified frame rectangle.

shared InitWithFrame(
x as Double,
y as Double,
width as Double,
height as Double) as EinhugurMacOSBridge.NSView

#### Parameters

x
  The x part of the frame rectangle for the created view object.
y
  The y part of the frame rectangle for the created view object. (Note that y usually starts from bottom)
width
  The width part of the frame rectangle for the created view object.
height
  The height part of the frame rectangle for the created view object.

#### Returns

EinhugurMacOSBridge.NSView
  An initialized NSView object or nil if the object couldn't be created.

#### Remarks

The new view object must be inserted into the view hierarchy of a window before it can be used. This method is the designated initializer for the NSView class. Returns an initialized object.

#### See Also

NSView Class