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!(
unsafe impl NSPredicateEditor {
#[method_id(@__retain_semantics Init initWithFrame:)]
pub unsafe fn initWithFrame(
this: Option<Allocated<Self>>,
frameRect: NSRect,
) -> Id<Self, Shared>;
}
);