Re: NSDocument subclass not dealloced after promising data - best way out this?
Re: NSDocument subclass not dealloced after promising data - best way out this?
- Subject: Re: NSDocument subclass not dealloced after promising data - best way out this?
- From: Steven Kramer <email@hidden>
- Date: Mon, 6 Dec 2004 10:19:36 +0100
So far, so good. But this setup is causing me crashes.
It seems that if I do any sort of drag operation in my
outline view, and then close the docoment window,
MyDocument does not get released. This means that
dealloc is never called, and consequently, MyDocument
is never unregistered as an observer. Thus, the closed
MyDocument may receive and act on a notification, and
its methods may try to access a view that *has* been
released when the window was closed - which results in
a crash.
I'd say the document needs to retain the view if it depends on it for
correct behaviour. I may be oversimplifying, because I don't know the
context, though.
Regards
Steven
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden