Re: [Pyobjc-dev] Re: PyShellView?
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-10-18 07:36:05
|
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? 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? Dinu -- Dinu C. Gherman - http://python.net/~gherman ...................................................................... "The whole point of brainwashing, is that those being brainwashed don't know it." (Graham Haley) |