Re: [Pyobjc-dev] Re: Subclassing NSCell?
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-05-14 18:57:00
|
On Wednesday, May 14, 2003, at 16:29 Europe/Amsterdam, Mitch Chapman wrote: > On Monday, May 12, 2003, at 11:35 PM, Mitch Chapman wrote: > >> I can create instances of the subclass, defined roughly as >> >> from AppKit import * >> class MyCell(NSCell): >> ... >> >> and can install these instances as data cells for NSTableColumns in >> an NSTableView. >> All cool. But if I try to override drawInteriorWithFrame_inView_, as >> follows, >> I get a segmentation fault on the first attempt to draw cell >> contents. What's more, >> I don't get the output from the print statement. > > I should probably be asking this elsewhere, but: > Can anyone summarize how to use gdb to debug a Python2.3b1 application? > In this case I've set SHOWPID and tried to attach to the running > Python process, but > gdb encounters errors during startup. It turns out that it does this > even if I just try to > debug the Python interpreter, without attaching to any running > processes. > (See below.) I usually look for the right process-id from the shell and then start 'gdb /usr/local/bin/pyton THEPID' (THEPID being the process-id). Are you using the Project Builder templates? These use /usr/bin/python unless you change the bin-python-main.m file. Ronald |