diff --git a/ChangeLog b/ChangeLog index 4d7e2799..3dbfb15e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-06 Fred Kiefer + + * GormCore/GormClassManager.m (-nibData): Make sure an action name + of ":" gets ignored. + 2008-12-26 13:53-EST Gregory John Casamento * Version: 1.2.8 diff --git a/GormCore/GormClassManager.m b/GormCore/GormClassManager.m index 90053118..b6b80c1a 100644 --- a/GormCore/GormClassManager.m +++ b/GormCore/GormClassManager.m @@ -1260,8 +1260,8 @@ NSString *actionName = nil; NSScanner *scanner = [NSScanner scannerWithString: action]; - [scanner scanUpToString: @":" intoString: &actionName]; - [actionDict setObject: @"id" forKey: actionName]; + if ([scanner scanUpToString: @":" intoString: &actionName]) + [actionDict setObject: @"id" forKey: actionName]; } [newInfo setObject: actionDict forKey: @"ACTIONS"]; @@ -1310,8 +1310,8 @@ NSString *actionName = nil; NSScanner *scanner = [NSScanner scannerWithString: action]; - [scanner scanUpToString: @":" intoString: &actionName]; - [actionDict setObject: @"id" forKey: actionName]; + if ([scanner scanUpToString: @":" intoString: &actionName]) + [actionDict setObject: @"id" forKey: actionName]; } [newInfo setObject: actionDict forKey: @"ACTIONS"];