[Pythonmac-SIG] PyObjC: dragImageForRowsWithIndexes_tableColumns_event_offset_() causes "PyObjCPointer created" error
Ronald Oussoren
ronaldoussoren at mac.com
Tue Mar 14 21:52:50 CET 2006
On 13-mrt-2006, at 19:51, Michael Glassford wrote:
> I added a dragImageForRowsWithIndexes_tableColumns_event_offset_()
> method to an NSTableView subclass that I have created. It's working
> OK,
> but every time it is called, a message like this is printed to the
> error
> log:
>
> "PyObjCPointer created: at 0xbfffcb50 of type {_NSPoint=ff}16
> dragImageForRows_event_dragImageOffset_()"
>
> I had a similar problem with
> tableView_toolTipForCell_rect_tableColumn_row_mouseLocation_(), which
> caused a crash on some machines. It was fixed by changing the
> signature
> of that function in AppKit/protocols.py. I looked for a way to change
> the signature of
> dragImageForRowsWithIndexes_tableColumns_event_offset_,
> but couldn't find it anywhere.
Add this call to AppKit/_AppKitSignatures.py:
setSignatureForSelector(
"NSTableView",
"dragImageForRows:event:dragImageOffset:",
"@@:@@N^{_NSPoint=ff}")
I haven't tested this addition yet, but It Should Work(TM).
Ronald
More information about the Pythonmac-SIG
mailing list