diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..907e7b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +*.app +*.debug +*.profile +*.plugin +*.framework +*.debugger +*.editor +*.parser +*.preferences +*.project +derived_src +obj +*~ diff --git a/ChangeLog b/ChangeLog index fe79288..ab7eb13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2019-12-29 Fred Kiefer + + * Framework/PCButton.m + * Framework/PCProjectBrowser.m + * Framework/PCProjectLauncherPanel.m + * Framework/PCProjectLoadedFilesPanel.m + * Framework/PCProjectManager.m + * Modules/Debuggers/ProjectCenter/PCDebugger.m + * Modules/Debuggers/ProjectCenter/PipeDelegate.m + * Modules/Editors/ProjectCenter/SyntaxHighlighter.m + * Modules/Projects/Library/PCLibProject.h + * Modules/Projects/Library/PCLibProject.m + Remove compiler warnings. + * .gitignore: Add file + 2019-05-25 Riccardo Mottola * Modules/Editors/ProjectCenter/SyntaxDefinition.h diff --git a/Framework/PCButton.m b/Framework/PCButton.m index dafd2a3..2ef8446 100644 --- a/Framework/PCButton.m +++ b/Framework/PCButton.m @@ -26,8 +26,6 @@ #import #import -#import - @implementation PCButton // ============================================================================ @@ -48,12 +46,5 @@ return self; } -- (void)dealloc -{ - [super dealloc]; -} - - - @end diff --git a/Framework/PCProjectBrowser.m b/Framework/PCProjectBrowser.m index 8dc8b4d..3b40686 100644 --- a/Framework/PCProjectBrowser.m +++ b/Framework/PCProjectBrowser.m @@ -599,7 +599,6 @@ NSString *PCBrowserDidSetPathNotification = @"PCBrowserDidSetPathNotification"; { NSString *categoryName = nil; NSString *fileName = nil; - NSString *fileExtension = nil; NSString *iconName = nil; NSImage *icon = nil; PCProject *activeProject = [[project projectManager] activeProject]; @@ -611,7 +610,6 @@ NSString *PCBrowserDidSetPathNotification = @"PCBrowserDidSetPathNotification"; { return icon; } - fileExtension = [fileName pathExtension]; } else { diff --git a/Framework/PCProjectLauncherPanel.m b/Framework/PCProjectLauncherPanel.m index 439ac53..ec7b0bd 100644 --- a/Framework/PCProjectLauncherPanel.m +++ b/Framework/PCProjectLauncherPanel.m @@ -35,14 +35,10 @@ - (id)initWithProjectManager:(PCProjectManager *)aManager { - PCProjectLauncher *projectLauncher = nil; PCProject *activeProject = nil; projectManager = aManager; activeProject = [projectManager rootActiveProject]; - projectLauncher = [activeProject projectLauncher]; - - projectLauncher = [[aManager activeProject] projectLauncher]; self = [super initWithContentRect: NSMakeRect (0, 300, 480, 322) styleMask: (NSTitledWindowMask diff --git a/Framework/PCProjectLoadedFilesPanel.m b/Framework/PCProjectLoadedFilesPanel.m index 5c0809b..1aa92ed 100644 --- a/Framework/PCProjectLoadedFilesPanel.m +++ b/Framework/PCProjectLoadedFilesPanel.m @@ -35,13 +35,11 @@ - (id)initWithProjectManager:(PCProjectManager *)aManager { - PCProjectLoadedFiles *projectLoadedFiles = nil; PCProject *activeProject = nil; projectManager = aManager; activeProject = [projectManager rootActiveProject]; currentProject = activeProject; - projectLoadedFiles = [activeProject projectLoadedFiles]; PCLogStatus(self, @"[init]"); diff --git a/Framework/PCProjectManager.m b/Framework/PCProjectManager.m index 07ac7df..81596fc 100644 --- a/Framework/PCProjectManager.m +++ b/Framework/PCProjectManager.m @@ -1337,6 +1337,9 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange"; // Create subproject subproject = [self createSubprojectOfType:spType path:spPath]; + // PCLogInfo(self, @"{createSubproject} add to %@", [activeProject projectName]); + [activeProject addSubproject:subproject]; + return; } @@ -1366,9 +1369,6 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange"; [subproject setSuperProject:activeProject]; [subproject setProjectManager:self]; -// PCLogInfo(self, @"{createSubproject} add to %@", [activeProject projectName]); - [activeProject addSubproject:subproject]; - return subproject; } diff --git a/Modules/Debuggers/ProjectCenter/PCDebugger.m b/Modules/Debuggers/ProjectCenter/PCDebugger.m index 8bfa286..523b247 100644 --- a/Modules/Debuggers/ProjectCenter/PCDebugger.m +++ b/Modules/Debuggers/ProjectCenter/PCDebugger.m @@ -200,10 +200,10 @@ NSString *PCDBDebuggerStartedNotification = @"PCDBDebuggerStartedNotification"; id viewDelegate; breakpoints = [[NSMutableArray alloc] init]; + /* CRUDE EXAMPLES * TODO FIXME * NSDictionary *dP; NSLog(@"initing breakpoints"); - /* CRUDE EXAMPLES * TODO FIXME * dP = [NSDictionary dictionaryWithObjectsAndKeys: PCBreakTypeMethod, PCBreakTypeKey, @"[NSException raise]", PCBreakMethod, nil]; // [breakpoints addObject:dP]; dP = [NSDictionary dictionaryWithObjectsAndKeys: PCBreakTypeByLine, PCBreakTypeKey, @"AppController.m", PCBreakFilename, [NSNumber numberWithInt:100], PCBreakLineNumber, nil]; diff --git a/Modules/Debuggers/ProjectCenter/PipeDelegate.m b/Modules/Debuggers/ProjectCenter/PipeDelegate.m index cc841a1..4ab714f 100644 --- a/Modules/Debuggers/ProjectCenter/PipeDelegate.m +++ b/Modules/Debuggers/ProjectCenter/PipeDelegate.m @@ -147,7 +147,6 @@ - (PCDebuggerOutputTypes) parseStringLine: (NSString *)stringInput { - BOOL found = NO; NSScanner *stringScanner; NSString *prefix = NULL; @@ -173,7 +172,6 @@ if(prefix != nil) { NSString *dictionaryName = NULL; - found = YES; [stringScanner scanUpToString: @"," intoString: &dictionaryName]; diff --git a/Modules/Editors/ProjectCenter/SyntaxHighlighter.m b/Modules/Editors/ProjectCenter/SyntaxHighlighter.m index 918f267..66ad1da 100644 --- a/Modules/Editors/ProjectCenter/SyntaxHighlighter.m +++ b/Modules/Editors/ProjectCenter/SyntaxHighlighter.m @@ -151,7 +151,7 @@ LocateString(NSString * str, - (void) assignGraphicalAttributesOfContext: (NSUInteger) context toRange: (NSRange) r; -- (void) assignGraphicalAttributesOfKeyword: (unsigned int) keyword +- (void) assignGraphicalAttributesOfKeyword: (NSUInteger) keyword inContext: (NSUInteger) context toRange: (NSRange) r; @@ -180,7 +180,7 @@ LocateString(NSString * str, NSUInteger i; unichar * string; - unsigned int context; + NSUInteger context; string = (unichar *) malloc(r.length * sizeof(unichar)); [[textStorage string] getCharacters: string range: r]; @@ -195,7 +195,7 @@ LocateString(NSString * str, // default context - look for beginning symbols if (context == 0) { - unsigned int j = 0; + NSUInteger j = 0; TextPattern * pattern = NULL; NSRange ctxtRange; NSInteger l = 0; diff --git a/Modules/Projects/Library/PCLibProject.h b/Modules/Projects/Library/PCLibProject.h index 22af55a..571c7d1 100644 --- a/Modules/Projects/Library/PCLibProject.h +++ b/Modules/Projects/Library/PCLibProject.h @@ -43,7 +43,6 @@ //---------------------------------------------------------------------------- - (id)init; -- (void)dealloc; - (PCProject *)createProjectAt:(NSString *)path; diff --git a/Modules/Projects/Library/PCLibProject.m b/Modules/Projects/Library/PCLibProject.m index eab0e52..1dcef27 100644 --- a/Modules/Projects/Library/PCLibProject.m +++ b/Modules/Projects/Library/PCLibProject.m @@ -158,6 +158,12 @@ return self; } +- (PCProject *)createProjectAt:(NSString *)path withOption:(NSString *)option +{ + // FIXME: Just to implement the protocol + return [self createProjectAt:path]; +} + // ---------------------------------------------------------------------------- // --- File Handling // ----------------------------------------------------------------------------