Trait NSObjectNSKeyValueBindingCreation

Source
pub unsafe trait NSObjectNSKeyValueBindingCreation:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn exposeBinding(binding: &NSBindingName) { ... }
    unsafe fn exposedBindings(&self) -> Retained<NSArray<NSBindingName>> { ... }
    unsafe fn valueClassForBinding(
        &self,
        binding: &NSBindingName,
    ) -> Option<&'static AnyClass> { ... }
    unsafe fn bind_toObject_withKeyPath_options(
        &self,
        binding: &NSBindingName,
        observable: &AnyObject,
        key_path: &NSString,
        options: Option<&NSDictionary<NSBindingOption, AnyObject>>,
    ) { ... }
    unsafe fn unbind(&self, binding: &NSBindingName) { ... }
    unsafe fn infoForBinding(
        &self,
        binding: &NSBindingName,
    ) -> Option<Retained<NSDictionary<NSBindingInfoKey, AnyObject>>> { ... }
}
Available on crate feature NSKeyValueBinding only.
Expand description

Category “NSKeyValueBindingCreation” on NSObject.

Provided Methods§

Source

unsafe fn exposeBinding(binding: &NSBindingName)

Source

unsafe fn exposedBindings(&self) -> Retained<NSArray<NSBindingName>>

Source

unsafe fn valueClassForBinding( &self, binding: &NSBindingName, ) -> Option<&'static AnyClass>

Source

unsafe fn bind_toObject_withKeyPath_options( &self, binding: &NSBindingName, observable: &AnyObject, key_path: &NSString, options: Option<&NSDictionary<NSBindingOption, AnyObject>>, )

Source

unsafe fn unbind(&self, binding: &NSBindingName)

Source

unsafe fn infoForBinding( &self, binding: &NSBindingName, ) -> Option<Retained<NSDictionary<NSBindingInfoKey, AnyObject>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSObjectNSKeyValueBindingCreation for NSObject

Implementors§