Skip to content

Commit 0259de3

Browse files
committed
Workspace: Controller: added pragma marks
1 parent ab046c4 commit 0259de3

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Applications/Workspace/Controller.m

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,13 @@
6262

6363
static NSString *WorkspaceVersion = @"0.8";
6464

65-
//============================================================================
66-
// Notifications
67-
//============================================================================
68-
69-
// Inspectors
65+
// Inspector notifications
7066
#import "Workspace.h"
7167
NSString *WMFolderSortMethodDidChangeNotification = @"WMFolderSortMethodDidChangeNotification";
7268
NSString *WMFilePermissionsDidChangeNotification = @"WMFilePermissionsDidChangeNotification";
7369
NSString *WMFileOwnerDidChangeNotification = @"WMFileOwnerDidChangeNotification";
7470

71+
// Workspace Notifications
7572
static NSString *WMSessionShouldFinishNotification = @"WMSessionShouldFinishNotification";
7673
static NSString *WMComputerShouldGoDownNotification = @"WMComputerShouldGoDownNotification";
7774

@@ -573,6 +570,9 @@ - (pid_t)_executeCommand:(NSString *)command
573570

574571
@implementation Controller
575572

573+
//============================================================================
574+
#pragma mark - Creation
575+
//============================================================================
576576
- (FileViewer *)newViewerRootedAt:(NSString *)path viewer:(NSString *)viewerType isRoot:(BOOL)root
577577
{
578578
NSFileManager *fm = [NSFileManager defaultManager];
@@ -615,7 +615,7 @@ - (FileViewer *)openNewViewerIfNotExistRootedAt:(NSString *)path
615615
}
616616

617617
//============================================================================
618-
// NSApplication delegate
618+
#pragma mark - NSApplication delegate
619619
//============================================================================
620620

621621
- (BOOL)application:(NSApplication *)app openFile:(NSString *)filename
@@ -887,6 +887,7 @@ - (void)openFileViewerService:(NSPasteboard *)pboard
887887
}
888888

889889
//============================================================================
890+
#pragma mark - NSApp related
890891
// Access to Workspace data via NSApp
891892
//============================================================================
892893
- (FileViewer *)rootViewer
@@ -983,7 +984,7 @@ - (Finder *)finder
983984
}
984985

985986
//============================================================================
986-
// Appicon badges
987+
#pragma mark - Appicon badges
987988
//============================================================================
988989
- (void)createWorkspaceBadge
989990
{
@@ -1070,7 +1071,7 @@ - (void)updateKeyboardBadge:(NSNotification *)aNotification
10701071
}
10711072

10721073
//============================================================================
1073-
// Application menu
1074+
#pragma mark - Application menu
10741075
//============================================================================
10751076

10761077
- (void)hideOtherApplications:(id)sender
@@ -1368,7 +1369,8 @@ - (BOOL)validateMenuItem:(id<NSMenuItem>)menuItem
13681369
}
13691370

13701371
//============================================================================
1371-
// OSEMediaManager events (alert panels, Processes-Background updates).
1372+
#pragma mark - OSEMediaManager events
1373+
// alert panels, Processes-Background updates
13721374
//============================================================================
13731375
- (void)diskDidAdd:(NSNotification *)notif
13741376
{

0 commit comments

Comments
 (0)