mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
Added an informative comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19748 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bb09d6f82d
commit
5737b76c79
1 changed files with 11 additions and 3 deletions
|
@ -259,9 +259,17 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
|
|||
}
|
||||
|
||||
/*
|
||||
* Retain all "top level" items so that, when the container is released, they will remain.
|
||||
* The GSNibItems instantiated in the gorm need to be retained,
|
||||
* since we are deallocating the container. We don't want to retain the owner.
|
||||
* Retain all "top level" items so that, when the container
|
||||
* is released, they will remain. The GSNibItems instantiated in the gorm need
|
||||
* to be retained, since we are deallocating the container.
|
||||
* We don't want to retain the owner.
|
||||
*
|
||||
* Please note: It is encumbent upon the developer of an application to
|
||||
* release these objects. Instantiating a window manually or loading in a .gorm
|
||||
* file are equivalent processes. These objects need to be released in their
|
||||
* respective controllers. If the developer has used the "NSTopLevelObjects" feature,
|
||||
* then he will get the objects back in an array which he mearly must release in
|
||||
* order to release the objects held within. GJC
|
||||
*/
|
||||
if([key isEqualToString: @"NSOwner"] == NO)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue