* 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:
Matt Rice 2009-03-02 09:35:34 +00:00
parent 31c7948faf
commit a962c06ac3
3 changed files with 18 additions and 4 deletions

View file

@ -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>
* DBModeler/Inspectors/AttributesInspector.m: Implement

View file

@ -41,7 +41,6 @@
EODisplayGroup *_attributes_dg;
EODisplayGroup *_relationships_dg;
id _entityToObserve;
id _attributeToObserve;
NSArray *_oldSelection;
}

View file

@ -198,10 +198,19 @@
- (void) dealloc
{
int i, c;
if (_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(_relationships_dg);
RELEASE(_attributes_dg);
@ -269,7 +278,6 @@
- (void) selectionDidChange:(NSNotification *)notif
{
EOModelerDocument *doc = [notif object];
NSArray *newSelection = [[EOMApp currentEditor] selectionWithinViewedObject];
int i, c;