Re: [Pyobjc-dev] Two difficulties with document-based app
Brought to you by:
ronaldoussoren
From: David E. <epp...@ic...> - 2002-12-12 05:00:14
|
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... Do you guys need a more formal bug report? Should I try to work up a simpler test case or has my description been clear enough for you to reproduce it? -- David Eppstein UC Irvine Dept. of Information & Computer Science epp...@ic... http://www.ics.uci.edu/~eppstein/ |