Skip to main content

NSRuleEditorDelegate

Trait NSRuleEditorDelegate 

Source
pub unsafe trait NSRuleEditorDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn ruleEditor_numberOfChildrenForCriterion_withRowType(
        &self,
        editor: &NSRuleEditor,
        criterion: Option<&AnyObject>,
        row_type: NSRuleEditorRowType,
    ) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn ruleEditor_child_forCriterion_withRowType(
        &self,
        editor: &NSRuleEditor,
        index: NSInteger,
        criterion: Option<&AnyObject>,
        row_type: NSRuleEditorRowType,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    unsafe fn ruleEditor_displayValueForCriterion_inRow(
        &self,
        editor: &NSRuleEditor,
        criterion: &AnyObject,
        row: NSInteger,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    unsafe fn ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow(
        &self,
        editor: &NSRuleEditor,
        criterion: &AnyObject,
        value: &AnyObject,
        row: NSInteger,
    ) -> Option<Retained<NSDictionary<NSRuleEditorPredicatePartKey, AnyObject>>>
       where Self: Sized + Message { ... }
    fn ruleEditorRowsDidChange(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
}
Available on crate feature NSRuleEditor only.
Expand description

Provided Methods§

Source

unsafe fn ruleEditor_numberOfChildrenForCriterion_withRowType( &self, editor: &NSRuleEditor, criterion: Option<&AnyObject>, row_type: NSRuleEditorRowType, ) -> NSInteger
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSView only.
§Safety

criterion should be of the correct type.

Source

unsafe fn ruleEditor_child_forCriterion_withRowType( &self, editor: &NSRuleEditor, index: NSInteger, criterion: Option<&AnyObject>, row_type: NSRuleEditorRowType, ) -> Retained<AnyObject>
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSView only.
§Safety

criterion should be of the correct type.

Source

unsafe fn ruleEditor_displayValueForCriterion_inRow( &self, editor: &NSRuleEditor, criterion: &AnyObject, row: NSInteger, ) -> Retained<AnyObject>
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSView only.
§Safety

criterion should be of the correct type.

Source

unsafe fn ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow( &self, editor: &NSRuleEditor, criterion: &AnyObject, value: &AnyObject, row: NSInteger, ) -> Option<Retained<NSDictionary<NSRuleEditorPredicatePartKey, AnyObject>>>
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSView only.
§Safety
  • criterion should be of the correct type.
  • value should be of the correct type.
Source

fn ruleEditorRowsDidChange(&self, notification: &NSNotification)
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSRuleEditorDelegate

Source§

impl ProtocolType for dyn NSRuleEditorDelegate

Source§

const NAME: &'static str = "NSRuleEditorDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSRuleEditorDelegate for ProtocolObject<T>

Implementors§