NSControl

Trait NSControl 

Source
pub trait NSControl: Sized {
    // Required methods
    unsafe fn initWithFrame_(self, frameRect: NSRect) -> id;
    unsafe fn isEnabled_(self) -> BOOL;
    unsafe fn setEnabled_(self, enabled: BOOL) -> BOOL;

    // Provided method
    unsafe fn alloc(_: Self) -> id { ... }
}
๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead

Required Methodsยง

Source

unsafe fn initWithFrame_(self, frameRect: NSRect) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn isEnabled_(self) -> BOOL

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setEnabled_(self, enabled: BOOL) -> BOOL

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead

Provided Methodsยง

Source

unsafe fn alloc(_: Self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead

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.

Implementorsยง