<GLView> ( class dim pixel-format -- view )
Cocoa bridge ยป Cocoa view utilities

Next:view-dim ( view -- dim )


Vocabulary
cocoa.views

Inputs
classan subclass of NSOpenGLView
dima pair of real numbers
pixel-formata pixel-format


Outputs
viewa new NSOpenGLView


Word description
Creates a new instance of the specified class, giving it the specified pixel format and size.

Definition


: <GLView> ( class dim pixel-format -- view )
[ { id { id SEL } } "alloc" send ]
[ [ 0 0 ] dip first2 <CGRect> ] [ handle>> ] tri*
{ id { id SEL NSRect id } } "initWithFrame:pixelFormat:"
send dup 1
{ void { id SEL char } }
"setPostsBoundsChangedNotifications:" send dup 1
{ void { id SEL char } }
"setPostsFrameChangedNotifications:" send ;