Add a binding to -[NSView superview].

This commit is contained in:
Patrick Walton
2016-02-03 14:15:18 -08:00
parent 712efcc25d
commit 3d09c6517a
+4
View File
@@ -1242,6 +1242,7 @@ pub trait NSView {
unsafe fn setWantsBestResolutionOpenGLSurface_(self, flag: BOOL);
unsafe fn convertPoint_fromView_(self, point: NSPoint, view: id) -> NSPoint;
unsafe fn addSubview_(self, view: id);
unsafe fn superview(self) -> id;
}
impl NSView for id {
@@ -1277,6 +1278,9 @@ impl NSView for id {
msg_send![self, addSubview:view]
}
unsafe fn superview(self) -> id {
msg_send![self, superview]
}
}
pub trait NSOpenGLView {