icrate 0.0.1

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;

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

    unsafe impl ClassType for NSPredicateEditor {
        #[inherits(NSControl, NSView, NSResponder, NSObject)]
        type Super = NSRuleEditor;
    }
);

extern_methods!(
    unsafe impl NSPredicateEditor {
        #[method_id(@__retain_semantics Other rowTemplates)]
        pub unsafe fn rowTemplates(&self) -> Id<NSArray<NSPredicateEditorRowTemplate>, Shared>;

        #[method(setRowTemplates:)]
        pub unsafe fn setRowTemplates(&self, rowTemplates: &NSArray<NSPredicateEditorRowTemplate>);
    }
);

extern_methods!(
    /// Methods declared on superclass `NSControl`
    unsafe impl NSPredicateEditor {
        #[method_id(@__retain_semantics Init initWithFrame:)]
        pub unsafe fn initWithFrame(
            this: Option<Allocated<Self>>,
            frameRect: NSRect,
        ) -> Id<Self, Shared>;
    }
);