diff options
| author | Teddy Wing | 2020-10-11 00:04:28 +0200 |
|---|---|---|
| committer | Teddy Wing | 2020-10-11 00:04:28 +0200 |
| commit | bc472b8f0ee0c28deecd77aa66f45f84011cec11 (patch) | |
| tree | 1534cfe4ee49f1820f6b0787424f7bd49c8b341c /Drop Serve | |
| parent | 4548fe81b21cbeb7242fd2a6d5e462827f857e31 (diff) | |
| download | Drop-Serve-bc472b8f0ee0c28deecd77aa66f45f84011cec11.tar.bz2 | |
Retab files
Use consistent indentation. Looks like I've been using tabs here, so
change everything to tabs. Some code was generated at the start of the
project, or I copied it from Apple reference documents, or it was
inserted from an Xcode snippet.
Diffstat (limited to 'Drop Serve')
| -rw-r--r-- | Drop Serve/AppDelegate.m | 2 | ||||
| -rw-r--r-- | Drop Serve/DropZone.m | 42 |
2 files changed, 22 insertions, 22 deletions
diff --git a/Drop Serve/AppDelegate.m b/Drop Serve/AppDelegate.m index 4a72685..c982dad 100644 --- a/Drop Serve/AppDelegate.m +++ b/Drop Serve/AppDelegate.m @@ -14,7 +14,7 @@ - (void)dealloc { - [super dealloc]; + [super dealloc]; } - (void)applicationDidFinishLaunching:(NSNotification *)aNotification diff --git a/Drop Serve/DropZone.m b/Drop Serve/DropZone.m index e97804d..6929e68 100644 --- a/Drop Serve/DropZone.m +++ b/Drop Serve/DropZone.m @@ -13,39 +13,39 @@ - (id)initWithCoder:(NSCoder *)coder { - self = [super initWithCoder:coder]; - if (self) { - [self registerForDraggedTypes:[NSArray arrayWithObjects: - NSFilenamesPboardType, nil]]; - } - return self; + self = [super initWithCoder:coder]; + if (self) { + [self registerForDraggedTypes:[NSArray arrayWithObjects: + NSFilenamesPboardType, nil]]; + } + return self; } - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender { [_label setStringValue:@""]; - NSPasteboard *pboard; - NSDragOperation sourceDragMask; + NSPasteboard *pboard; + NSDragOperation sourceDragMask; - sourceDragMask = [sender draggingSourceOperationMask]; - pboard = [sender draggingPasteboard]; + sourceDragMask = [sender draggingSourceOperationMask]; + pboard = [sender draggingPasteboard]; - if ([[pboard types] containsObject:NSFilenamesPboardType]) { + if ([[pboard types] containsObject:NSFilenamesPboardType]) { return NSDragOperationLink; - } + } - return NSDragOperationNone; + return NSDragOperationNone; } - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender { - NSPasteboard *pboard; - NSDragOperation sourceDragMask; + NSPasteboard *pboard; + NSDragOperation sourceDragMask; - sourceDragMask = [sender draggingSourceOperationMask]; - pboard = [sender draggingPasteboard]; + sourceDragMask = [sender draggingSourceOperationMask]; + pboard = [sender draggingPasteboard]; - if ([[pboard types] containsObject:NSFilenamesPboardType]) { - NSArray *files = [pboard propertyListForType:NSFilenamesPboardType]; + if ([[pboard types] containsObject:NSFilenamesPboardType]) { + NSArray *files = [pboard propertyListForType:NSFilenamesPboardType]; if ([files count] > 1) { [_label setStringValue:@"Please drop a single folder"]; @@ -80,9 +80,9 @@ // Sleep to give the server time to start up before opening the page. [NSThread sleepForTimeInterval:0.5]; [Server openInBrowser]; - } + } - return YES; + return YES; } @end |
