diff --git a/src/osx/mod.rs b/src/osx/mod.rs index 64cc5298..0b4a5080 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -268,7 +268,8 @@ impl Window { } pub fn get_inner_size(&self) -> Option<(uint, uint)> { - unimplemented!() + let rect = unsafe { NSView::frame(self.view) }; + Some((rect.size.width as uint, rect.size.height as uint)) } pub fn get_outer_size(&self) -> Option<(uint, uint)> {