[Pyobjc-dev] Re: PyShellView?
Brought to you by:
ronaldoussoren
From: Michael H. <mw...@py...> - 2003-10-20 10:32:58
|
Dinu Gherman <gh...@da...> writes: > Michael Hudson: > >> If I implement this delgate method and press "backspace" in the text >> view, I get a core dump deep in Scary Internals Land. I've not got >> the latest PyObjC on my laptop, and my laptop is at home so I can't >> update, but does this sound familiar to anyone? Might it be cured by >> a new libffi (for example)? > > Have you read Ronald's follow-up message to mine you're citing? Yes. > Ronald Oussoren wrote: > >> Now that I look at your message again I see what's wrong: don't use >> outlets to store the committedLength. If you store anything in >> outlets you must make sure that that object stays alive by other >> means (e.g. store a reference in a regular instance variable or even >> call 'retain'). That doesn't help for "plain python" value though, >> therefore you shouldn't store plain-python values in outlets. I'm >> going to add something about this issue to the documentation. >> >> Basic guideline: Only use outlets if you're going to set them from >> Interface Builder, otherwise use "regular" instance variables. > > Does that help? No :-) Cheers, mwh -- If you're talking "useful", I'm not your bot. -- Tim Peters, 08 Nov 2001 |