Re: [Pyobjc-dev] tableview_willDisplayCell_forTableColumn_row_ failure
Brought to you by:
ronaldoussoren
From: <bo...@pa...> - 2003-02-27 23:16:18
|
ok, i figured it out. the signature for this method was wrong in file ./Lib/AppKit/__init__.py line 577 should be changed from signature='c@:@@@i', instead of signature='v@:@@@i', the method was being called, but the bridge was having a hard time converting my void return to a character (BOOL) return value. since i don't have write permissions to the CVS depot, can one of the developers add this in? --bob On Thursday, February 27, 2003, at 02:41 PM, Bob Pasker wrote: > so, when i add the following method to my TableView delegate > > def tableView_willDisplayCell_forTableColumn_row_(self, > aTableView, aCell, aColumn, rowIndex): > print "tableview will display cell" > > the run window shows: > > tableview will display cell > Traceback (most recent call last): > File "/Users/rbp/Documents/build > projects/X.app/Contents/Resources/__main__.py", line 19, in ? > sys.exit(AppKit.NSApplicationMain(sys.argv)) > objc.error: depythonifying 'char', got NoneType of -1 > > that last line is coming from ./Modules/objc/obj_support.m lines > 853:855 > > the weird thing is that the print results show up in the Run window, > so the > method must be getting called. commenting out the two lines, and the > failure > doesnt happen. > > any ideas? > > thanks, bob > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |