|
62 | 62 |
|
63 | 63 | static NSString *WorkspaceVersion = @"0.8"; |
64 | 64 |
|
65 | | -//============================================================================ |
66 | | -// Notifications |
67 | | -//============================================================================ |
68 | | - |
69 | | -// Inspectors |
| 65 | +// Inspector notifications |
70 | 66 | #import "Workspace.h" |
71 | 67 | NSString *WMFolderSortMethodDidChangeNotification = @"WMFolderSortMethodDidChangeNotification"; |
72 | 68 | NSString *WMFilePermissionsDidChangeNotification = @"WMFilePermissionsDidChangeNotification"; |
73 | 69 | NSString *WMFileOwnerDidChangeNotification = @"WMFileOwnerDidChangeNotification"; |
74 | 70 |
|
| 71 | +// Workspace Notifications |
75 | 72 | static NSString *WMSessionShouldFinishNotification = @"WMSessionShouldFinishNotification"; |
76 | 73 | static NSString *WMComputerShouldGoDownNotification = @"WMComputerShouldGoDownNotification"; |
77 | 74 |
|
@@ -573,6 +570,9 @@ - (pid_t)_executeCommand:(NSString *)command |
573 | 570 |
|
574 | 571 | @implementation Controller |
575 | 572 |
|
| 573 | +//============================================================================ |
| 574 | +#pragma mark - Creation |
| 575 | +//============================================================================ |
576 | 576 | - (FileViewer *)newViewerRootedAt:(NSString *)path viewer:(NSString *)viewerType isRoot:(BOOL)root |
577 | 577 | { |
578 | 578 | NSFileManager *fm = [NSFileManager defaultManager]; |
@@ -615,7 +615,7 @@ - (FileViewer *)openNewViewerIfNotExistRootedAt:(NSString *)path |
615 | 615 | } |
616 | 616 |
|
617 | 617 | //============================================================================ |
618 | | -// NSApplication delegate |
| 618 | +#pragma mark - NSApplication delegate |
619 | 619 | //============================================================================ |
620 | 620 |
|
621 | 621 | - (BOOL)application:(NSApplication *)app openFile:(NSString *)filename |
@@ -887,6 +887,7 @@ - (void)openFileViewerService:(NSPasteboard *)pboard |
887 | 887 | } |
888 | 888 |
|
889 | 889 | //============================================================================ |
| 890 | +#pragma mark - NSApp related |
890 | 891 | // Access to Workspace data via NSApp |
891 | 892 | //============================================================================ |
892 | 893 | - (FileViewer *)rootViewer |
@@ -983,7 +984,7 @@ - (Finder *)finder |
983 | 984 | } |
984 | 985 |
|
985 | 986 | //============================================================================ |
986 | | -// Appicon badges |
| 987 | +#pragma mark - Appicon badges |
987 | 988 | //============================================================================ |
988 | 989 | - (void)createWorkspaceBadge |
989 | 990 | { |
@@ -1070,7 +1071,7 @@ - (void)updateKeyboardBadge:(NSNotification *)aNotification |
1070 | 1071 | } |
1071 | 1072 |
|
1072 | 1073 | //============================================================================ |
1073 | | -// Application menu |
| 1074 | +#pragma mark - Application menu |
1074 | 1075 | //============================================================================ |
1075 | 1076 |
|
1076 | 1077 | - (void)hideOtherApplications:(id)sender |
@@ -1368,7 +1369,8 @@ - (BOOL)validateMenuItem:(id<NSMenuItem>)menuItem |
1368 | 1369 | } |
1369 | 1370 |
|
1370 | 1371 | //============================================================================ |
1371 | | -// OSEMediaManager events (alert panels, Processes-Background updates). |
| 1372 | +#pragma mark - OSEMediaManager events |
| 1373 | +// alert panels, Processes-Background updates |
1372 | 1374 | //============================================================================ |
1373 | 1375 | - (void)diskDidAdd:(NSNotification *)notif |
1374 | 1376 | { |
|
0 commit comments