Trait objc2_app_kit::NSTableViewDataSource
source · pub unsafe trait NSTableViewDataSource: NSObjectProtocol {
// Provided methods
unsafe fn numberOfRowsInTableView(
&self,
table_view: &NSTableView
) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn tableView_objectValueForTableColumn_row(
&self,
table_view: &NSTableView,
table_column: Option<&NSTableColumn>,
row: NSInteger
) -> Option<Retained<AnyObject>>
where Self: Sized + Message { ... }
unsafe fn tableView_setObjectValue_forTableColumn_row(
&self,
table_view: &NSTableView,
object: Option<&AnyObject>,
table_column: Option<&NSTableColumn>,
row: NSInteger
)
where Self: Sized + Message { ... }
unsafe fn tableView_sortDescriptorsDidChange(
&self,
table_view: &NSTableView,
old_descriptors: &NSArray<NSSortDescriptor>
)
where Self: Sized + Message { ... }
unsafe fn tableView_pasteboardWriterForRow(
&self,
table_view: &NSTableView,
row: NSInteger
) -> Option<Retained<ProtocolObject<dyn NSPasteboardWriting>>>
where Self: Sized + Message { ... }
unsafe fn tableView_draggingSession_willBeginAtPoint_forRowIndexes(
&self,
table_view: &NSTableView,
session: &NSDraggingSession,
screen_point: NSPoint,
row_indexes: &NSIndexSet
)
where Self: Sized + Message { ... }
unsafe fn tableView_draggingSession_endedAtPoint_operation(
&self,
table_view: &NSTableView,
session: &NSDraggingSession,
screen_point: NSPoint,
operation: NSDragOperation
)
where Self: Sized + Message { ... }
unsafe fn tableView_updateDraggingItemsForDrag(
&self,
table_view: &NSTableView,
dragging_info: &ProtocolObject<dyn NSDraggingInfo>
)
where Self: Sized + Message { ... }
unsafe fn tableView_writeRowsWithIndexes_toPasteboard(
&self,
table_view: &NSTableView,
row_indexes: &NSIndexSet,
pboard: &NSPasteboard
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_validateDrop_proposedRow_proposedDropOperation(
&self,
table_view: &NSTableView,
info: &ProtocolObject<dyn NSDraggingInfo>,
row: NSInteger,
drop_operation: NSTableViewDropOperation
) -> NSDragOperation
where Self: Sized + Message { ... }
unsafe fn tableView_acceptDrop_row_dropOperation(
&self,
table_view: &NSTableView,
info: &ProtocolObject<dyn NSDraggingInfo>,
row: NSInteger,
drop_operation: NSTableViewDropOperation
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes(
&self,
table_view: &NSTableView,
drop_destination: &NSURL,
index_set: &NSIndexSet
) -> Retained<NSArray<NSString>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSTableView
only.Provided Methods§
unsafe fn numberOfRowsInTableView(&self, table_view: &NSTableView) -> NSInteger
Available on crate features
NSControl
and NSResponder
and NSView
only.unsafe fn tableView_objectValueForTableColumn_row( &self, table_view: &NSTableView, table_column: Option<&NSTableColumn>, row: NSInteger ) -> Option<Retained<AnyObject>>
Available on crate features
NSControl
and NSResponder
and NSTableColumn
and NSView
only.unsafe fn tableView_setObjectValue_forTableColumn_row( &self, table_view: &NSTableView, object: Option<&AnyObject>, table_column: Option<&NSTableColumn>, row: NSInteger )
Available on crate features
NSControl
and NSResponder
and NSTableColumn
and NSView
only.unsafe fn tableView_sortDescriptorsDidChange( &self, table_view: &NSTableView, old_descriptors: &NSArray<NSSortDescriptor> )
Available on crate features
NSControl
and NSResponder
and NSView
only.unsafe fn tableView_pasteboardWriterForRow( &self, table_view: &NSTableView, row: NSInteger ) -> Option<Retained<ProtocolObject<dyn NSPasteboardWriting>>>
Available on crate features
NSControl
and NSPasteboard
and NSResponder
and NSView
only.unsafe fn tableView_draggingSession_willBeginAtPoint_forRowIndexes( &self, table_view: &NSTableView, session: &NSDraggingSession, screen_point: NSPoint, row_indexes: &NSIndexSet )
Available on crate features
NSControl
and NSDraggingSession
and NSResponder
and NSView
only.unsafe fn tableView_draggingSession_endedAtPoint_operation( &self, table_view: &NSTableView, session: &NSDraggingSession, screen_point: NSPoint, operation: NSDragOperation )
Available on crate features
NSControl
and NSDragging
and NSDraggingSession
and NSResponder
and NSView
only.unsafe fn tableView_updateDraggingItemsForDrag( &self, table_view: &NSTableView, dragging_info: &ProtocolObject<dyn NSDraggingInfo> )
Available on crate features
NSControl
and NSDragging
and NSResponder
and NSView
only.unsafe fn tableView_writeRowsWithIndexes_toPasteboard( &self, table_view: &NSTableView, row_indexes: &NSIndexSet, pboard: &NSPasteboard ) -> bool
👎Deprecated: Use -tableView:pasteboardWriterForRow: instead
Available on crate features
NSControl
and NSPasteboard
and NSResponder
and NSView
only.unsafe fn tableView_validateDrop_proposedRow_proposedDropOperation( &self, table_view: &NSTableView, info: &ProtocolObject<dyn NSDraggingInfo>, row: NSInteger, drop_operation: NSTableViewDropOperation ) -> NSDragOperation
Available on crate features
NSControl
and NSDragging
and NSResponder
and NSView
only.unsafe fn tableView_acceptDrop_row_dropOperation( &self, table_view: &NSTableView, info: &ProtocolObject<dyn NSDraggingInfo>, row: NSInteger, drop_operation: NSTableViewDropOperation ) -> bool
Available on crate features
NSControl
and NSDragging
and NSResponder
and NSView
only.unsafe fn tableView_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes( &self, table_view: &NSTableView, drop_destination: &NSURL, index_set: &NSIndexSet ) -> Retained<NSArray<NSString>>
👎Deprecated: Use NSFilePromiseReceiver objects instead
Available on crate features
NSControl
and NSResponder
and NSView
only.Trait Implementations§
source§impl ProtocolType for dyn NSTableViewDataSource
impl ProtocolType for dyn NSTableViewDataSource
impl<T> ImplementedBy<T> for dyn NSTableViewDataSource
Implementations on Foreign Types§
impl<T> NSTableViewDataSource for ProtocolObject<T>where
T: ?Sized + NSTableViewDataSource,
Implementors§
impl<SectionIdentifierType: ?Sized, ItemIdentifierType: ?Sized> NSTableViewDataSource for NSTableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType>
Available on crate feature
NSTableViewDiffableDataSource
only.