Index: utils/objfw-new/ObjFWNew.m ================================================================== --- utils/objfw-new/ObjFWNew.m +++ utils/objfw-new/ObjFWNew.m @@ -41,11 +41,11 @@ @implementation ObjFWNew - (void)applicationDidFinishLaunching { bool app, class; - OFString *superclass = nil; + OFString *superclass = nil, *name; OFMutableArray OF_GENERIC(OFString *) *properties = nil; const OFOptionsParserOption options[] = { { 'a', @"app", 0, &app, NULL }, { 'c', @"class", 0, &class, NULL }, { 's', @"superclass", 1, NULL, &superclass }, @@ -75,17 +75,22 @@ if ((app ^ class) != 1 || optionsParser.remainingArguments.count != 1) showUsage(); if ((superclass && !class) || (properties != nil && !class)) showUsage(); + + name = optionsParser.remainingArguments.firstObject; + if ([name rangeOfString: @"."].location != OFNotFound) { + [OFStdErr writeLine: @"Name must not contain dots!"]; + [OFApplication terminate]; + } if (app) - newApp(optionsParser.remainingArguments.firstObject); + newApp(name); else if (class) - newClass(optionsParser.remainingArguments.firstObject, - superclass, properties); + newClass(name, superclass, properties); else showUsage(); [OFApplication terminate]; } @end