Trouble assigning datasource and delegate to an instance of NSTableView
Trouble assigning datasource and delegate to an instance of NSTableView
- Subject: Trouble assigning datasource and delegate to an instance of NSTableView
- From: Peter Hudson <email@hidden>
- Date: Thu, 28 Mar 2019 22:58:42 +0000
Hi there
The class I am trying to use as a datasource and delegate to an NSTableView
adopts the required protocols and implements the required methods :-
@interface ImportTool <NSTableViewDataSource, NSTableViewDelegate, NSEncoding>
: NSObject
etc …
But when I try to assign an instance of ImportScript as datasource and delegate
to the table view in question I get the following warning :-
Assigning to 'id<NSTableViewDataSource> _Nullable' from incompatible type
'ImportTool *__strong’
Any suggestions gratefully received !
Peter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden