The release of NSWindowController
The release of NSWindowController
- Subject: The release of NSWindowController
- From: "Tony S. Wu" <email@hidden>
- Date: Sun, 13 Apr 2003 11:12:40 -0700
In one of my class, I create a NSWindowController which is the owner of
a nib file.
When the main window of the nib file is closed, I want to release the
NSWindowController.
So, I catch the windowWillClose notification then make the window
controller autorelease.
But, when I use the debugger to check, all the address of the window
controller are still valid after the release.
However, if i try to send that controller a message the program crash.
Is this the normal behavior of NSWindowController?
I kinda expected it to become invalid after release...
Tony S. Wu
email@hidden
"The world doesn't give us hope - it gives us chance."
http://homepage.mac.com/tonyswu/tonyswu - My web page.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.