aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Drop Serve/AppDelegate.m2
-rw-r--r--Drop Serve/DropZone.m42
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