Instance Method

initWithFrame:frameName:groupName:

Initializes the receiver with a frame rectangle, frame name, and group name.

Declaration

- (instancetype)initWithFrame:(NSRect)frame frameName:(NSString *)frameName groupName:(NSString *)groupName;

Parameters

frameRect

The frame rectangle for the created view object.

frameName

The web frame’s name. This should not be one of the predefined frame names (see the WebFramefindFrameNamed: method for a description of their meaning), but a custom name or a name used in HTML source. This parameter can be nil.

groupName

An arbitrary identifier used to group related frames. For example, JavaScript running in a frame can access any other frame in the same group. It's up to the application how it chooses to scope related frames. This parameter can be nil.

Return Value

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

Discussion

This method is the designated initializer for the WebView class.