winit-gtk 0.1.0

Cross-platform window creation library.
Documentation
use objc2::foundation::{NSObject, NSString};
use objc2::rc::{Id, Shared};
use objc2::{extern_class, extern_methods, msg_send_id, ClassType};

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub(crate) struct NSPasteboard;

    unsafe impl ClassType for NSPasteboard {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl NSPasteboard {
        pub fn propertyListForType(&self, type_: &NSPasteboardType) -> Id<NSObject, Shared> {
            unsafe { msg_send_id![self, propertyListForType: type_] }
        }
    }
);

pub type NSPasteboardType = NSString;

extern "C" {
    pub static NSFilenamesPboardType: &'static NSPasteboardType;
}