native-dialog 0.5.4

A library to display dialogs. Supports GNU/Linux, BSD Unix, macOS and Windows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use objc_foundation::INSObject;
use objc_id::Id;

pub trait INSView: INSObject {
    fn add_subview(&self, view: Id<impl INSView>) {
        unsafe { msg_send![self, addSubview: view] }
    }
}

object_struct!(NSView);

impl INSView for NSView {}