mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Removed unecessary call.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19811 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
25947784ca
commit
021f7d7078
2 changed files with 14 additions and 16 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-08-02 00:14 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/2Controls/inspectors.m: Reversion of previous
|
||||
change. The real problem was that in setObject: the
|
||||
_setValuesFromObject: method was being called unnecessarily.
|
||||
The call has been removed.
|
||||
|
||||
2004-08-01 23:17 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormLib/IBEditors.m: Removed some old comments which are
|
||||
|
|
|
@ -144,7 +144,8 @@
|
|||
id typeButton;
|
||||
id keyEquiv;
|
||||
}
|
||||
|
||||
- (void) setButtonType: (NSButtonType)type forObject: (id)button;
|
||||
- (void) _setValuesFromControl: (id)control;
|
||||
- (void) _getValuesFromObject: (id)anObject;
|
||||
@end
|
||||
|
||||
|
@ -243,15 +244,13 @@
|
|||
NSString *string;
|
||||
NSImage *image;
|
||||
|
||||
if([object isKindOfClass: [NSForm class]])
|
||||
{
|
||||
[object setTitle: [[control cellAtIndex: 0] stringValue]];
|
||||
[object setAlternateTitle: [[control cellAtIndex: 1] stringValue]];
|
||||
}
|
||||
[object setTitle: [[control cellAtIndex: 0] stringValue]];
|
||||
[object setAlternateTitle: [[control cellAtIndex: 1] stringValue]];
|
||||
|
||||
string = [[control cellAtIndex: 2] stringValue];
|
||||
if ([string length] > 0)
|
||||
{
|
||||
image = [NSImage imageNamed: string];
|
||||
image = [NSImage imageNamed: string];
|
||||
[object setImage: image];
|
||||
}
|
||||
string = [[control cellAtIndex: 3] stringValue];
|
||||
|
@ -381,25 +380,17 @@
|
|||
/* Doesn't work yet? */
|
||||
// [typeButton setAction: @selector(setButtonTypeFrom:)];
|
||||
// [typeButton setTarget: self];
|
||||
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) ok: (id)sender
|
||||
{
|
||||
NSDebugLog(@"ok: sender = %@",sender);
|
||||
[self _setValuesFromControl: sender];
|
||||
}
|
||||
|
||||
- (void) setObject: (id)anObject
|
||||
{
|
||||
if ([self object] != anObject)
|
||||
{
|
||||
/*
|
||||
* Ensure textfields in title form are written to old object.
|
||||
*/
|
||||
[self _setValuesFromControl: titleForm];
|
||||
}
|
||||
[super setObject: anObject];
|
||||
[self _getValuesFromObject: anObject];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue