NCWidgetListViewDelegate

Trait NCWidgetListViewDelegate 

Source
pub unsafe trait NCWidgetListViewDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn widgetList_viewControllerForRow(
        &self,
        list: &NCWidgetListViewController,
        row: NSUInteger,
    ) -> Retained<NSViewController>
       where Self: Sized + Message { ... }
    unsafe fn widgetListPerformAddAction(
        &self,
        list: &NCWidgetListViewController,
    )
       where Self: Sized + Message { ... }
    unsafe fn widgetList_shouldReorderRow(
        &self,
        list: &NCWidgetListViewController,
        row: NSUInteger,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn widgetList_didReorderRow_toRow(
        &self,
        list: &NCWidgetListViewController,
        row: NSUInteger,
        new_index: NSUInteger,
    )
       where Self: Sized + Message { ... }
    unsafe fn widgetList_shouldRemoveRow(
        &self,
        list: &NCWidgetListViewController,
        row: NSUInteger,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn widgetList_didRemoveRow(
        &self,
        list: &NCWidgetListViewController,
        row: NSUInteger,
    )
       where Self: Sized + Message { ... }
}
👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature NCWidgetListViewController only.
Expand description

Provided Methods§

Source

unsafe fn widgetList_viewControllerForRow( &self, list: &NCWidgetListViewController, row: NSUInteger, ) -> Retained<NSViewController>
where Self: Sized + Message,

👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn widgetListPerformAddAction(&self, list: &NCWidgetListViewController)
where Self: Sized + Message,

👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn widgetList_shouldReorderRow( &self, list: &NCWidgetListViewController, row: NSUInteger, ) -> bool
where Self: Sized + Message,

👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn widgetList_didReorderRow_toRow( &self, list: &NCWidgetListViewController, row: NSUInteger, new_index: NSUInteger, )
where Self: Sized + Message,

👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn widgetList_shouldRemoveRow( &self, list: &NCWidgetListViewController, row: NSUInteger, ) -> bool
where Self: Sized + Message,

👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn widgetList_didRemoveRow( &self, list: &NCWidgetListViewController, row: NSUInteger, )
where Self: Sized + Message,

👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature objc2-app-kit and macOS only.

Trait Implementations§

Source§

impl ProtocolType for dyn NCWidgetListViewDelegate

Source§

const NAME: &'static str = "NCWidgetListViewDelegate"

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
Source§

impl<T> ImplementedBy<T> for dyn NCWidgetListViewDelegate

Implementations on Foreign Types§

Source§

impl<T> NCWidgetListViewDelegate for ProtocolObject<T>

Implementors§