pub unsafe trait NSObjectNSKeyValueBindingCreation:
ClassType
+ Sized
+ Sealed {
// Provided methods
fn exposeBinding(binding: &NSBindingName) { ... }
fn exposedBindings(&self) -> Retained<NSArray<NSBindingName>> { ... }
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>>,
) { ... }
fn unbind(&self, binding: &NSBindingName) { ... }
fn infoForBinding(
&self,
binding: &NSBindingName,
) -> Option<Retained<NSDictionary<NSBindingInfoKey, AnyObject>>> { ... }
}
Available on crate feature
NSKeyValueBinding
only.Expand description
Category “NSKeyValueBindingCreation” on NSObject
.
Provided Methods§
fn exposeBinding(binding: &NSBindingName)
fn exposedBindings(&self) -> Retained<NSArray<NSBindingName>>
fn valueClassForBinding( &self, binding: &NSBindingName, ) -> Option<&'static AnyClass>
Sourceunsafe fn bind_toObject_withKeyPath_options(
&self,
binding: &NSBindingName,
observable: &AnyObject,
key_path: &NSString,
options: Option<&NSDictionary<NSBindingOption, AnyObject>>,
)
unsafe fn bind_toObject_withKeyPath_options( &self, binding: &NSBindingName, observable: &AnyObject, key_path: &NSString, options: Option<&NSDictionary<NSBindingOption, AnyObject>>, )
§Safety
observable
should be of the correct type.options
generic should be of the correct type.
fn unbind(&self, binding: &NSBindingName)
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.