mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:27:40 +00:00
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:
parent
8bec211360
commit
20247dac50
5 changed files with 388 additions and 114 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue