Send the connector as the object in the notification sent by removeConnector:.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21118 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-04-17 01:48:49 +00:00
parent 194491fe6c
commit d6c63c9e96
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2005-04-16 21:44 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.m: In removeConnector: make the
IBWillRemoveConnectorNotification carry aConnector as the
object, instead of the document. The same for
IBDidRemoveConnectorNotification.
2005-04-16 19:29 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormPalettesManager.m: Slight improvement to palette

View file

@ -2440,10 +2440,11 @@ static NSImage *fileImage = nil;
*/
- (void) removeConnector: (id<IBConnectors>)aConnector
{
RETAIN(aConnector); // prevent it from being dealloc'd until the notification is done.
// issue pre notification..
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc postNotificationName: IBWillRemoveConnectorNotification
object: self];
object: aConnector];
// mark the document as changed.
[self touch];
@ -2451,7 +2452,8 @@ static NSImage *fileImage = nil;
// issue post notification..
[connections removeObjectIdenticalTo: aConnector];
[nc postNotificationName: IBDidRemoveConnectorNotification
object: self];
object: aConnector];
RELEASE(aConnector); // NOW we can dealloc it.
}
/**