Re: [Pyobjc-dev] Two difficulties with document-based app
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-12-13 10:23:15
|
On Thursday, Dec 12, 2002, at 06:00 Europe/Amsterdam, David Eppstein wrote: > On 12/11/02 1:20 PM -0800 David Eppstein <epp...@ic...> wrote: >> It turns out that the "Before DECREF in normal" / "Release with dead >> python" messages are caused by the outlets on File's Owner. If I >> don't >> set those outlets, the messages stop happening and my bus errors go >> away. >> Is this a bug in pyobjc or in my understanding of how to use it? I >> can >> easily work around this by moving all the functionality from >> MyDocument >> to another object created within the nib, but it would be helpful to >> understand whether outlets to File's Owners are ok. > > I spoke too early. This seems to be difficult to work around. > > The NSDocument class has an outlet, "window". If I fail to connect > this outlet from the nib's "File's Owner" object to the nib's window, > new document windows come up unselected, and you have to click on them > to activate them (obviously undesired behavior). But if I connect > this outlet, then closing a document window causes the log messages > and bus error death. For that matter, to implement file i/o, I am > going to need outlets connecting the document object to the objects > where the data lives... > > I decided this was a serious enough bug for me to immediately go ahead > with Bill Bum's suggestion that I try the cvs version instead of the > 0.7 package. Unfortunately, while the log messages are gone, the bus > error is still there... > That's too bad. I've yet really tried to reproduce your problem, but from your description your trying to do something like the Todo example. That example does not crash. Could you try to build a simpler test case? Ronald |