[Pythonmac-SIG] PyObjC: dragImageForRowsWithIndexes_tableColumns_event_offset_() causes "PyObjCPointer created" error
Michael Glassford
glassfordm at hotmail.com
Tue Mar 14 23:30:33 CET 2006
Ronald Oussoren wrote:
> 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).
Thanks, it did work. I also added:
_objc.setSignatureForSelector(
"NSTableView",
"dragImageForRowsWithIndexes:tableColumns:event:offset:",
"@@:@@@N^{_NSPoint=ff}"
)
Mike
> Ronald
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
More information about the Pythonmac-SIG
mailing list