Hi, Fred Kiefer wrote:
That is a good question. A window controller sets its window to nil, when it gets deallocated. This releases the window and should cut the connection from the window to the controller. But only the connections GNUstep knows about. If your code sets the controller as the delegate of the window (Why do you do this? You don't seem to need it on MacOSX), you will need to override the -setWindow: and clean out the delegate when the window gets reset.
I do not know why it is done, I only think it is done on MacOSX too..
What do you mean by "clean out the delegate" ?I did an override in the controller's setWindow method and printed it out. I indeed get two calls, one at open time, one at close time:
2014-02-05 01:21:05.141 GNUMail[5089] Controller setWindow! <EditWindow: 0x2bf325c8>Number: 21 Title: Window, Window
2014-02-05 01:21:24.086 GNUMail[5089] Controller setWindow! (null), (null) Segmentation fault (core dumped)however since I get it called with null, I suppose it is cleaning up, that is removing the window from the controller. Nothing I can "clean up" in null, reset its delegate.
Riccardo
<<attachment: riccardo_mottola.vcf>>
_______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
