Re: [Pyobjc-dev] HelloWorld.py segfaults
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-06-30 10:00:16
|
Ronald Oussoren wrote: > This seems to be a reference counting issue, maybe NSApplication > doesn't retain its delegate. It doesn't. (It seems that delegates are not retained in general.) > If you change the code to: > dgate = AppDelegate.alloc().init() > NSApp.setDelegate_(dgate) > > instead of 'NSApp.setDelegate_(AppDelegate.alloc().init())' the > example works as expected. I'll check in a similar fix. Just |