mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:10:36 +00:00
Unbind key bindings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33511 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d938e01461
commit
e04f21516d
4 changed files with 20 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-07-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSDocumentController.m (-dealloc),
|
||||
* Source/NSWindow.m (-dealloc),
|
||||
* Source/NSLayoutManager.m (-dealloc): Unbind key bindings.
|
||||
|
||||
2011-07-11 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSColorPanel.m (-_magnify:): Preliminary implementation
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#import "AppKit/NSWorkspace.h"
|
||||
#import "NSDocumentFrameworkPrivate.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
#import "GSBindingHelpers.h"
|
||||
|
||||
static NSString *NSTypesKey = @"NSTypes";
|
||||
static NSString *NSNameKey = @"NSName";
|
||||
|
@ -327,6 +328,9 @@ TypeInfoForHumanReadableName (NSArray *types, NSString *typeName)
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
// Remove all key value bindings for this object.
|
||||
[GSKeyValueBinding unbindAllForObject: self];
|
||||
|
||||
[[[NSWorkspace sharedWorkspace] notificationCenter] removeObserver: self];
|
||||
RELEASE (_documents);
|
||||
RELEASE (_recent_documents);
|
||||
|
|
|
@ -122,6 +122,7 @@ first. Remaining cases, highest priority first:
|
|||
#import "AppKit/DPSOperators.h"
|
||||
|
||||
#import "GNUstepGUI/GSLayoutManager_internal.h"
|
||||
#import "GSBindingHelpers.h"
|
||||
|
||||
|
||||
@interface NSLayoutManager (spelling)
|
||||
|
@ -2180,6 +2181,9 @@ static void GSDrawPatternLine(NSPoint start, NSPoint end, NSInteger pattern, CGF
|
|||
|
||||
-(void) dealloc
|
||||
{
|
||||
// Remove all key value bindings for this object.
|
||||
[GSKeyValueBinding unbindAllForObject: self];
|
||||
|
||||
DESTROY(_typingAttributes);
|
||||
DESTROY(_temporaryAttributes);
|
||||
[super dealloc];
|
||||
|
|
|
@ -76,18 +76,18 @@
|
|||
#import "AppKit/NSView.h"
|
||||
#import "AppKit/NSWindow.h"
|
||||
#import "AppKit/NSWindowController.h"
|
||||
#import "GSBindingHelpers.h"
|
||||
#import "AppKit/PSOperators.h"
|
||||
|
||||
#import "GNUstepGUI/GSTheme.h"
|
||||
#import "GNUstepGUI/GSTrackingRect.h"
|
||||
#import "GNUstepGUI/GSDisplayServer.h"
|
||||
#import "GNUstepGUI/GSWindowDecorationView.h"
|
||||
#import "GSBindingHelpers.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
#import "GSToolTips.h"
|
||||
#import "GSIconManager.h"
|
||||
#import "NSToolbarFrameworkPrivate.h"
|
||||
|
||||
#import <GNUstepGUI/GSWindowDecorationView.h>
|
||||
|
||||
#define GSI_ARRAY_TYPES 0
|
||||
#define GSI_ARRAY_TYPE NSWindow *
|
||||
#define GSI_ARRAY_NO_RELEASE 1
|
||||
|
@ -754,6 +754,9 @@ many times.
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
// Remove all key value bindings for this object.
|
||||
[GSKeyValueBinding unbindAllForObject: self];
|
||||
|
||||
DESTROY(_toolbar);
|
||||
[nc removeObserver: self];
|
||||
[[self class] _removeAutodisplayedWindow: self];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue