mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-19 17:50:47 +00:00
* DBModeler/ModelerAttributeEditor.m (dealloc): Remove observers and
release the selection, remove unused ivar. (selectionDidChange:): Remove unused local. * DBModeler/ModelerAttributeEditor.h: Remove unused ivar. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28024 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
31c7948faf
commit
a962c06ac3
3 changed files with 18 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2009-03-02 Matt Rice <ratmice@gmail.com>
|
||||||
|
|
||||||
|
* DBModeler/ModelerAttributeEditor.m (dealloc): Remove observers and
|
||||||
|
release the selection, remove unused ivar.
|
||||||
|
(selectionDidChange:): Remove unused local.
|
||||||
|
* DBModeler/ModelerAttributeEditor.h: Remove unused ivar.
|
||||||
|
|
||||||
2009-03-01 Matt Rice <ratmice@gmail.com>
|
2009-03-01 Matt Rice <ratmice@gmail.com>
|
||||||
|
|
||||||
* DBModeler/Inspectors/AttributesInspector.m: Implement
|
* DBModeler/Inspectors/AttributesInspector.m: Implement
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
EODisplayGroup *_attributes_dg;
|
EODisplayGroup *_attributes_dg;
|
||||||
EODisplayGroup *_relationships_dg;
|
EODisplayGroup *_relationships_dg;
|
||||||
id _entityToObserve;
|
id _entityToObserve;
|
||||||
id _attributeToObserve;
|
|
||||||
NSArray *_oldSelection;
|
NSArray *_oldSelection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -198,10 +198,19 @@
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
|
int i, c;
|
||||||
|
|
||||||
if (_entityToObserve)
|
if (_entityToObserve)
|
||||||
[EOObserverCenter removeObserver:self forObject:_entityToObserve];
|
[EOObserverCenter removeObserver:self forObject:_entityToObserve];
|
||||||
if (_attributeToObserve)
|
|
||||||
[EOObserverCenter removeObserver:self forObject:_attributeToObserve];
|
c = [_oldSelection count];
|
||||||
|
for (i = 0; i < c; i++)
|
||||||
|
{
|
||||||
|
[EOObserverCenter removeObserver:self
|
||||||
|
forObject:[_oldSelection objectAtIndex:i]];
|
||||||
|
}
|
||||||
|
|
||||||
|
RELEASE(_oldSelection);
|
||||||
RELEASE(_mainView);
|
RELEASE(_mainView);
|
||||||
RELEASE(_relationships_dg);
|
RELEASE(_relationships_dg);
|
||||||
RELEASE(_attributes_dg);
|
RELEASE(_attributes_dg);
|
||||||
|
@ -269,7 +278,6 @@
|
||||||
|
|
||||||
- (void) selectionDidChange:(NSNotification *)notif
|
- (void) selectionDidChange:(NSNotification *)notif
|
||||||
{
|
{
|
||||||
EOModelerDocument *doc = [notif object];
|
|
||||||
NSArray *newSelection = [[EOMApp currentEditor] selectionWithinViewedObject];
|
NSArray *newSelection = [[EOMApp currentEditor] selectionWithinViewedObject];
|
||||||
int i, c;
|
int i, c;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue