Re: [Pyobjc-dev] problem with NSTableView
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-03-13 20:08:00
|
On Thursday, Mar 13, 2003, at 20:56 Europe/Amsterdam, chris bunker wrote: > Hello, I'm currently experiencing an error with my > program which lead to the following getting outputted > to the console > here is the python code of the knownEntities Object > that acts as the datasource. > > class entityTable(NSObject): There's your problem. You should also inherit from NSTableDataSource: class entityTable(NSObject, NSTableDataSource): ... This is necessary to make sure that the bridge knows the right method signatures for Objective-C: A number of the methods in the datasource protocol use plain C types as arguments or return value, without this hint the bridge assumes that all arguments and return values are objects. Ronald |