NSOutlineViewDataSource

Trait NSOutlineViewDataSource 

Source
pub unsafe trait NSOutlineViewDataSource: NSObjectProtocol {
Show 16 methods // Provided methods unsafe fn outlineView_numberOfChildrenOfItem( &self, outline_view: &NSOutlineView, item: Option<&AnyObject>, ) -> NSInteger where Self: Sized + Message { ... } unsafe fn outlineView_child_ofItem( &self, outline_view: &NSOutlineView, index: NSInteger, item: Option<&AnyObject>, ) -> Retained<AnyObject> where Self: Sized + Message { ... } unsafe fn outlineView_isItemExpandable( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_objectValueForTableColumn_byItem( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: Option<&AnyObject>, ) -> Option<Retained<AnyObject>> where Self: Sized + Message { ... } unsafe fn outlineView_setObjectValue_forTableColumn_byItem( &self, outline_view: &NSOutlineView, object: Option<&AnyObject>, table_column: Option<&NSTableColumn>, item: Option<&AnyObject>, ) where Self: Sized + Message { ... } unsafe fn outlineView_itemForPersistentObject( &self, outline_view: &NSOutlineView, object: &AnyObject, ) -> Option<Retained<AnyObject>> where Self: Sized + Message { ... } unsafe fn outlineView_persistentObjectForItem( &self, outline_view: &NSOutlineView, item: Option<&AnyObject>, ) -> Option<Retained<AnyObject>> where Self: Sized + Message { ... } fn outlineView_sortDescriptorsDidChange( &self, outline_view: &NSOutlineView, old_descriptors: &NSArray<NSSortDescriptor>, ) where Self: Sized + Message { ... } unsafe fn outlineView_pasteboardWriterForItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> Option<Retained<ProtocolObject<dyn NSPasteboardWriting>>> where Self: Sized + Message { ... } unsafe fn outlineView_draggingSession_willBeginAtPoint_forItems( &self, outline_view: &NSOutlineView, session: &NSDraggingSession, screen_point: NSPoint, dragged_items: &NSArray, ) where Self: Sized + Message { ... } fn outlineView_draggingSession_endedAtPoint_operation( &self, outline_view: &NSOutlineView, session: &NSDraggingSession, screen_point: NSPoint, operation: NSDragOperation, ) where Self: Sized + Message { ... } unsafe fn outlineView_writeItems_toPasteboard( &self, outline_view: &NSOutlineView, items: &NSArray, pasteboard: &NSPasteboard, ) -> bool where Self: Sized + Message { ... } fn outlineView_updateDraggingItemsForDrag( &self, outline_view: &NSOutlineView, dragging_info: &ProtocolObject<dyn NSDraggingInfo>, ) where Self: Sized + Message { ... } unsafe fn outlineView_validateDrop_proposedItem_proposedChildIndex( &self, outline_view: &NSOutlineView, info: &ProtocolObject<dyn NSDraggingInfo>, item: Option<&AnyObject>, index: NSInteger, ) -> NSDragOperation where Self: Sized + Message { ... } unsafe fn outlineView_acceptDrop_item_childIndex( &self, outline_view: &NSOutlineView, info: &ProtocolObject<dyn NSDraggingInfo>, item: Option<&AnyObject>, index: NSInteger, ) -> bool where Self: Sized + Message { ... } unsafe fn outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems( &self, outline_view: &NSOutlineView, drop_destination: &NSURL, items: &NSArray, ) -> Retained<NSArray<NSString>> where Self: Sized + Message { ... }
}
Available on crate feature NSOutlineView only.
Expand description

Provided Methods§

Source

unsafe fn outlineView_numberOfChildrenOfItem( &self, outline_view: &NSOutlineView, item: Option<&AnyObject>, ) -> NSInteger
where Self: Sized + Message,

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

item should be of the correct type.

Source

unsafe fn outlineView_child_ofItem( &self, outline_view: &NSOutlineView, index: NSInteger, item: Option<&AnyObject>, ) -> Retained<AnyObject>
where Self: Sized + Message,

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

item should be of the correct type.

Source

unsafe fn outlineView_isItemExpandable( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool
where Self: Sized + Message,

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

item should be of the correct type.

Source

unsafe fn outlineView_objectValueForTableColumn_byItem( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: Option<&AnyObject>, ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

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

item should be of the correct type.

Source

unsafe fn outlineView_setObjectValue_forTableColumn_byItem( &self, outline_view: &NSOutlineView, object: Option<&AnyObject>, table_column: Option<&NSTableColumn>, item: Option<&AnyObject>, )
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSTableColumn and NSTableView and NSView only.
§Safety
  • object should be of the correct type.
  • item should be of the correct type.
Source

unsafe fn outlineView_itemForPersistentObject( &self, outline_view: &NSOutlineView, object: &AnyObject, ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

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

object should be of the correct type.

Source

unsafe fn outlineView_persistentObjectForItem( &self, outline_view: &NSOutlineView, item: Option<&AnyObject>, ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

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

item should be of the correct type.

Source

fn outlineView_sortDescriptorsDidChange( &self, outline_view: &NSOutlineView, old_descriptors: &NSArray<NSSortDescriptor>, )
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSTableView and NSView only.
Source

unsafe fn outlineView_pasteboardWriterForItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> Option<Retained<ProtocolObject<dyn NSPasteboardWriting>>>
where Self: Sized + Message,

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

item should be of the correct type.

Source

unsafe fn outlineView_draggingSession_willBeginAtPoint_forItems( &self, outline_view: &NSOutlineView, session: &NSDraggingSession, screen_point: NSPoint, dragged_items: &NSArray, )
where Self: Sized + Message,

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

dragged_items generic should be of the correct type.

Source

fn outlineView_draggingSession_endedAtPoint_operation( &self, outline_view: &NSOutlineView, session: &NSDraggingSession, screen_point: NSPoint, operation: NSDragOperation, )
where Self: Sized + Message,

Available on crate features NSControl and NSDragging and NSDraggingSession and NSResponder and NSTableView and NSView only.
Source

unsafe fn outlineView_writeItems_toPasteboard( &self, outline_view: &NSOutlineView, items: &NSArray, pasteboard: &NSPasteboard, ) -> bool
where Self: Sized + Message,

👎Deprecated: Use -outlineView:pasteboardWriterForItem: instead
Available on crate features NSControl and NSPasteboard and NSResponder and NSTableView and NSView only.
§Safety

items generic should be of the correct type.

Source

fn outlineView_updateDraggingItemsForDrag( &self, outline_view: &NSOutlineView, dragging_info: &ProtocolObject<dyn NSDraggingInfo>, )
where Self: Sized + Message,

Available on crate features NSControl and NSDragging and NSResponder and NSTableView and NSView only.
Source

unsafe fn outlineView_validateDrop_proposedItem_proposedChildIndex( &self, outline_view: &NSOutlineView, info: &ProtocolObject<dyn NSDraggingInfo>, item: Option<&AnyObject>, index: NSInteger, ) -> NSDragOperation
where Self: Sized + Message,

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

item should be of the correct type.

Source

unsafe fn outlineView_acceptDrop_item_childIndex( &self, outline_view: &NSOutlineView, info: &ProtocolObject<dyn NSDraggingInfo>, item: Option<&AnyObject>, index: NSInteger, ) -> bool
where Self: Sized + Message,

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

item should be of the correct type.

Source

unsafe fn outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems( &self, outline_view: &NSOutlineView, drop_destination: &NSURL, items: &NSArray, ) -> Retained<NSArray<NSString>>
where Self: Sized + Message,

👎Deprecated: Use NSFilePromiseReceiver objects instead
Available on crate features NSControl and NSResponder and NSTableView and NSView only.
§Safety

items generic should be of the correct type.

Trait Implementations§

Source§

impl ProtocolType for dyn NSOutlineViewDataSource

Source§

const NAME: &'static str = "NSOutlineViewDataSource"

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 NSOutlineViewDataSource

Implementations on Foreign Types§

Source§

impl<T> NSOutlineViewDataSource for ProtocolObject<T>

Implementors§