Rewrite key view handling

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14805 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-10-21 13:03:23 +00:00
parent 8bec211360
commit 20247dac50
5 changed files with 388 additions and 114 deletions

View file

@ -352,19 +352,15 @@ static NSNotificationCenter *nc;
return self;
}
- (void)dealloc
- (void) dealloc
{
if (_tvf.owns_text_network == YES)
{
if (_textStorage != nil)
{
/* Balance the RELEASE we sent to us to break the retain cycle
in initWithFrame: or initWithCoder: (otherwise releasing the
_textStorage will make our retain count go below zero ;-) */
RETAIN (self);
/* This releases all the text objects (us included) in
* fall. */
/* This releases all the text objects (us included) which means
* this method will be called again ... so this time we just return.
*/
DESTROY (_textStorage);
/* When the rest of the text network is released, we'll be