root/trunk/ImageDragArea.m @ 40

Revision 40, 1.1 kB (checked in by ngerakines, 3 years ago)

* Added growl notification on service connect
* Changed the language used in login and prefs
* On enter from password field a login is performed
* Made several adjustments throughout the app

Line 
1#import "ImageDragArea.h"
2#import "TypePad.h"
3
4@implementation ImageDragArea
5
6- (void) setImage:(NSImage *)image { }
7
8- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender {
9        /* NSLog(@"- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender - called\n"); */
10    if ((NSDragOperationGeneric & [sender draggingSourceOperationMask]) == NSDragOperationGeneric) {
11        return NSDragOperationGeneric;
12        }
13        if ((NSDragOperationCopy & [sender draggingSourceOperationMask]) == NSDragOperationCopy) {
14                return NSDragOperationCopy;
15        }
16        return NSDragOperationNone;
17}
18
19- (void)draggingExited:(id <NSDraggingInfo>)sender { }
20
21- (void)draggingEnded:(id <NSDraggingInfo>)sender { }
22
23- (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender { return YES; }
24
25- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender {
26// NSLog$1(@"- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender - called\n");
27        TypePad *tp = [[[TypePad alloc] init] autorelease];
28        [tp dispatchAction:[sender draggingPasteboard]];
29        [self setNeedsDisplay:YES];
30    return YES;
31}
32
33- (void)dealloc {
34    [self unregisterDraggedTypes];
35    [super dealloc];
36}
37
38@end
Note: See TracBrowser for help on using the browser.