mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 06:00:44 +00:00
Some minor corrections
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18304 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
345a609884
commit
4151d2e886
3 changed files with 32 additions and 11 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-01-03 02:08 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassInspector.m: Minor correction to -removeAction: and
|
||||
-removeOutlet: to prevent an exception being raised when
|
||||
performing remove when there are not outlets/actions in the
|
||||
list.
|
||||
|
||||
2004-01-01 00:13 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Gorm.m: More usability changes to grey out menu items which
|
||||
|
|
2
Gorm.m
2
Gorm.m
|
@ -299,7 +299,7 @@ NSString *GormWillDetachObjectFromDocumentNotification = @"GormWillDetachObjectF
|
|||
{
|
||||
if([a count] > 0)
|
||||
{
|
||||
NSLog(@"WARNING: Gorm has detected that you are using user bundles. Please make certain that these are capatible with Gorm as some bundles can cause issues which may corrupt your .gorm files.");
|
||||
NSLog(@"WARNING: Gorm has detected that you are using user bundles. Please make certain that these are compatible with Gorm as some bundles can cause issues which may corrupt your .gorm files.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -233,11 +233,18 @@ objectValueForTableColumn: (NSTableColumn *)tc
|
|||
int i = [actionTable selectedRow];
|
||||
NSString *className = [self _currentClass];
|
||||
NSArray *list = [[(Gorm *)NSApp classManager] allActionsForClassNamed: className];
|
||||
NSString *name = [list objectAtIndex: i];
|
||||
BOOL removed = [(GormDocument *)[(id <IB>)NSApp activeDocument]
|
||||
removeConnectionsWithLabel: name
|
||||
forClassNamed: currentClass
|
||||
isAction: YES];
|
||||
BOOL removed = NO;
|
||||
NSString *name = nil;
|
||||
|
||||
// check the count...
|
||||
if([list count] > 0)
|
||||
{
|
||||
name = [list objectAtIndex: i];
|
||||
removed = [(GormDocument *)[(id <IB>)NSApp activeDocument]
|
||||
removeConnectionsWithLabel: name
|
||||
forClassNamed: currentClass
|
||||
isAction: YES];
|
||||
}
|
||||
|
||||
if(removed)
|
||||
{
|
||||
|
@ -254,11 +261,18 @@ objectValueForTableColumn: (NSTableColumn *)tc
|
|||
int i = [outletTable selectedRow];
|
||||
NSString *className = [self _currentClass];
|
||||
NSArray *list = [[(Gorm *)NSApp classManager] allOutletsForClassNamed: className];
|
||||
NSString *name = [list objectAtIndex: i];
|
||||
BOOL removed = [(GormDocument *)[(id <IB>)NSApp activeDocument]
|
||||
removeConnectionsWithLabel: name
|
||||
forClassNamed: currentClass
|
||||
isAction: NO];
|
||||
BOOL removed = NO;
|
||||
NSString *name = nil;
|
||||
|
||||
// check the count...
|
||||
if([list count] > 0)
|
||||
{
|
||||
name = [list objectAtIndex: i];
|
||||
removed = [(GormDocument *)[(id <IB>)NSApp activeDocument]
|
||||
removeConnectionsWithLabel: name
|
||||
forClassNamed: currentClass
|
||||
isAction: NO];
|
||||
}
|
||||
|
||||
if(removed)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue