Re: [CoreData] Undo of insert - how to close the removed object's window?
Re: [CoreData] Undo of insert - how to close the removed object's window?
- Subject: Re: [CoreData] Undo of insert - how to close the removed object's window?
- From: Kaspar Fischer <email@hidden>
- Date: Tue, 15 Nov 2005 19:19:17 +0100
On 15.11.2005, at 16:38, mmalcolm crawford wrote:
I would first suspect that you're leaking the nib files -- see
"Memory Management and Retain Cycles" at <http://homepage.mac.com/
mmalc/CocoaExamples/controllers.html>.
Hm, are you saying that the window should actually be released
*immediately* when I close it from my observation routine?
And that due to a leaking error from my side (which is more than
possible!) it is not released?
Funnily enough, the window *does* get released when I ignore
the assertions. (You have to know that the "crash" I mentioned
in the original post is not really a crash -- it's simply one
of my NSAssert's being violated because a view is accessing
the MVC model object via one of my controllers when the model
isn't there anymore. If I remove these assertions, everything
works fine: the window gets released, the bindings unbound, etc.)
So I am a little confused now because I thought that a window
is never released directly but only autoreleased (so that it
gets released safely at the end of the event loop). Is this
correct?
If so then I really have to manually unbind it, don't I? :-(
Thanks,
Kaspar
_______________________________________________
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