Window Closing Behavior
Window Closing Behavior
- Subject: Window Closing Behavior
- From: John Nairn <email@hidden>
- Date: Wed, 27 Jul 2005 09:45:05 +0200
I am confused about closing windows in a document that has more than
one window controller to manage multiple window types. There are
actually two types of controllers, but several instances of one of
the controllers may exist at the same time. According to Apple
documentation:
When a secondary window of a document is closed, only that window is
closed. The window controller is removed from the document’s list of
window controllers. The secondary window and its window controller
are released.
Sometimes that is true, but other times the window stays in the list
of window controllers and its window controller is not released. I
monitored retain and release to make sure there were no unbalanced
calls. What can cause a window controller to not be removed from list
of window controllers and to not be released when it closes? Or how
to explain that is released sometimes but not others?
---------------
John Nairn (1-801-581-3413, FAX:1-801-581-4816)
Web Page: http://www.mse.utah.edu/~nairn
_______________________________________________
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