Disabling the current, rather broken, class parser.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19871 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-08-13 22:19:47 +00:00
parent f31d2c70e3
commit 7f5c027157
3 changed files with 20 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2004-08-13 18:30 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Disabled class parser menu item in [Gorm
validateMenuItem:].
* GormClassManager.m: [GormClassManager parseClass:]
commented out contents of this method. The class
parser needs to be replaced and it shouldn't be
used until it's rewritten.
2004-08-12 21:41 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: [Gorm validateMenuItem:] deselect the cut, delete,

6
Gorm.m
View file

@ -1236,6 +1236,12 @@ NSString *GormResizeCellNotification = @"GormResizeCellNotification";
GormClassManager *cm = [active classManager];
NSArray *s = [selectionOwner selection];
// temporarily disabling this functionality....
if (sel_eq(action, @selector(loadClass:)))
{
return NO;
}
if (sel_eq(action, @selector(close:))
|| sel_eq(action, @selector(miniaturize:))
|| sel_eq(action, @selector(save:))

View file

@ -1382,6 +1382,7 @@
- (BOOL) parseHeader: (NSString *)headerPath
{
/*
NSString *headerFile = [NSString stringWithContentsOfFile: headerPath];
NSScanner *headerScanner = [NSScanner scannerWithString: headerFile];
NSCharacterSet *superClassStopSet = [NSCharacterSet characterSetWithCharactersInString: @" \n"];
@ -1574,7 +1575,7 @@
{
if (isAction)
{
/* Add the ':' back */
// Add the ':' back /
action = [action stringByAppendingString: @":"];
NSDebugLog(@"action = %@", action);
if(NSEqualRanges([action rangeOfCharacterFromSet: illegalActionSet],notFoundRange))
@ -1645,6 +1646,9 @@
} // if we found a class
}
return YES;
*/
return NO;
}
- (BOOL) isAction: (NSString *)name ofClass: (NSString *)className