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§
Sourceunsafe fn outlineView_numberOfChildrenOfItem(
&self,
outline_view: &NSOutlineView,
item: Option<&AnyObject>,
) -> NSInteger
Available on crate features NSControl and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_numberOfChildrenOfItem( &self, outline_view: &NSOutlineView, item: Option<&AnyObject>, ) -> NSInteger
NSControl and NSResponder and NSTableView and NSView only.§Safety
item should be of the correct type.
Sourceunsafe fn outlineView_child_ofItem(
&self,
outline_view: &NSOutlineView,
index: NSInteger,
item: Option<&AnyObject>,
) -> Retained<AnyObject>
Available on crate features NSControl and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_child_ofItem( &self, outline_view: &NSOutlineView, index: NSInteger, item: Option<&AnyObject>, ) -> Retained<AnyObject>
NSControl and NSResponder and NSTableView and NSView only.§Safety
item should be of the correct type.
Sourceunsafe fn outlineView_isItemExpandable(
&self,
outline_view: &NSOutlineView,
item: &AnyObject,
) -> bool
Available on crate features NSControl and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_isItemExpandable( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> bool
NSControl and NSResponder and NSTableView and NSView only.§Safety
item should be of the correct type.
Sourceunsafe fn outlineView_objectValueForTableColumn_byItem(
&self,
outline_view: &NSOutlineView,
table_column: Option<&NSTableColumn>,
item: Option<&AnyObject>,
) -> Option<Retained<AnyObject>>
Available on crate features NSControl and NSResponder and NSTableColumn and NSTableView and NSView only.
unsafe fn outlineView_objectValueForTableColumn_byItem( &self, outline_view: &NSOutlineView, table_column: Option<&NSTableColumn>, item: Option<&AnyObject>, ) -> Option<Retained<AnyObject>>
NSControl and NSResponder and NSTableColumn and NSTableView and NSView only.§Safety
item should be of the correct type.
Sourceunsafe fn outlineView_setObjectValue_forTableColumn_byItem(
&self,
outline_view: &NSOutlineView,
object: Option<&AnyObject>,
table_column: Option<&NSTableColumn>,
item: Option<&AnyObject>,
)
Available on crate features NSControl and NSResponder and NSTableColumn and NSTableView and NSView only.
unsafe fn outlineView_setObjectValue_forTableColumn_byItem( &self, outline_view: &NSOutlineView, object: Option<&AnyObject>, table_column: Option<&NSTableColumn>, item: Option<&AnyObject>, )
NSControl and NSResponder and NSTableColumn and NSTableView and NSView only.§Safety
objectshould be of the correct type.itemshould be of the correct type.
Sourceunsafe fn outlineView_itemForPersistentObject(
&self,
outline_view: &NSOutlineView,
object: &AnyObject,
) -> Option<Retained<AnyObject>>
Available on crate features NSControl and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_itemForPersistentObject( &self, outline_view: &NSOutlineView, object: &AnyObject, ) -> Option<Retained<AnyObject>>
NSControl and NSResponder and NSTableView and NSView only.§Safety
object should be of the correct type.
Sourceunsafe fn outlineView_persistentObjectForItem(
&self,
outline_view: &NSOutlineView,
item: Option<&AnyObject>,
) -> Option<Retained<AnyObject>>
Available on crate features NSControl and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_persistentObjectForItem( &self, outline_view: &NSOutlineView, item: Option<&AnyObject>, ) -> Option<Retained<AnyObject>>
NSControl and NSResponder and NSTableView and NSView only.§Safety
item should be of the correct type.
fn outlineView_sortDescriptorsDidChange( &self, outline_view: &NSOutlineView, old_descriptors: &NSArray<NSSortDescriptor>, )
Available on crate features
NSControl and NSResponder and NSTableView and NSView only.Sourceunsafe fn outlineView_pasteboardWriterForItem(
&self,
outline_view: &NSOutlineView,
item: &AnyObject,
) -> Option<Retained<ProtocolObject<dyn NSPasteboardWriting>>>
Available on crate features NSControl and NSPasteboard and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_pasteboardWriterForItem( &self, outline_view: &NSOutlineView, item: &AnyObject, ) -> Option<Retained<ProtocolObject<dyn NSPasteboardWriting>>>
NSControl and NSPasteboard and NSResponder and NSTableView and NSView only.§Safety
item should be of the correct type.
Sourceunsafe fn outlineView_draggingSession_willBeginAtPoint_forItems(
&self,
outline_view: &NSOutlineView,
session: &NSDraggingSession,
screen_point: NSPoint,
dragged_items: &NSArray,
)
Available on crate features NSControl and NSDraggingSession and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_draggingSession_willBeginAtPoint_forItems( &self, outline_view: &NSOutlineView, session: &NSDraggingSession, screen_point: NSPoint, dragged_items: &NSArray, )
NSControl and NSDraggingSession and NSResponder and NSTableView and NSView only.§Safety
dragged_items generic should be of the correct type.
fn outlineView_draggingSession_endedAtPoint_operation( &self, outline_view: &NSOutlineView, session: &NSDraggingSession, screen_point: NSPoint, operation: NSDragOperation, )
Available on crate features
NSControl and NSDragging and NSDraggingSession and NSResponder and NSTableView and NSView only.Sourceunsafe fn outlineView_writeItems_toPasteboard(
&self,
outline_view: &NSOutlineView,
items: &NSArray,
pasteboard: &NSPasteboard,
) -> bool
👎Deprecated: Use -outlineView:pasteboardWriterForItem: instead
Available on crate features NSControl and NSPasteboard and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_writeItems_toPasteboard( &self, outline_view: &NSOutlineView, items: &NSArray, pasteboard: &NSPasteboard, ) -> bool
Use -outlineView:pasteboardWriterForItem: instead
NSControl and NSPasteboard and NSResponder and NSTableView and NSView only.§Safety
items generic should be of the correct type.
fn outlineView_updateDraggingItemsForDrag( &self, outline_view: &NSOutlineView, dragging_info: &ProtocolObject<dyn NSDraggingInfo>, )
Available on crate features
NSControl and NSDragging and NSResponder and NSTableView and NSView only.Sourceunsafe fn outlineView_validateDrop_proposedItem_proposedChildIndex(
&self,
outline_view: &NSOutlineView,
info: &ProtocolObject<dyn NSDraggingInfo>,
item: Option<&AnyObject>,
index: NSInteger,
) -> NSDragOperation
Available on crate features NSControl and NSDragging and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_validateDrop_proposedItem_proposedChildIndex( &self, outline_view: &NSOutlineView, info: &ProtocolObject<dyn NSDraggingInfo>, item: Option<&AnyObject>, index: NSInteger, ) -> NSDragOperation
NSControl and NSDragging and NSResponder and NSTableView and NSView only.§Safety
item should be of the correct type.
Sourceunsafe fn outlineView_acceptDrop_item_childIndex(
&self,
outline_view: &NSOutlineView,
info: &ProtocolObject<dyn NSDraggingInfo>,
item: Option<&AnyObject>,
index: NSInteger,
) -> bool
Available on crate features NSControl and NSDragging and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_acceptDrop_item_childIndex( &self, outline_view: &NSOutlineView, info: &ProtocolObject<dyn NSDraggingInfo>, item: Option<&AnyObject>, index: NSInteger, ) -> bool
NSControl and NSDragging and NSResponder and NSTableView and NSView only.§Safety
item should be of the correct type.
Sourceunsafe fn outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems(
&self,
outline_view: &NSOutlineView,
drop_destination: &NSURL,
items: &NSArray,
) -> Retained<NSArray<NSString>>
👎Deprecated: Use NSFilePromiseReceiver objects instead
Available on crate features NSControl and NSResponder and NSTableView and NSView only.
unsafe fn outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems( &self, outline_view: &NSOutlineView, drop_destination: &NSURL, items: &NSArray, ) -> Retained<NSArray<NSString>>
Use NSFilePromiseReceiver objects instead
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
impl ProtocolType for dyn NSOutlineViewDataSource
impl<T> ImplementedBy<T> for dyn NSOutlineViewDataSource
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".