Ignore:
Timestamp:
05/31/03 05:04:00 (21 years ago)
Author:
Nicholas Riley
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/ICeCoffEETerminal.m

    r106 r139  
    5353- (NSArray*)validAttributesForMarkedText { return nil; }
    5454
    55 // misc. other stuff
     55// NSDraggingDestination
     56- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender { return NSDragOperationNone; }
     57- (void)draggingExited:(id <NSDraggingInfo>)sender {}
     58
     59    // misc. other stuff
    5660- (void)_optionClickEvent:(NSEvent *)event:(unsigned int)row:(unsigned short)column {}
    5761- (void)setNeedsDisplay; {}
     
    351355
    352356        ICLog(@"parsed back %@", selRange);
    353         NSLog(@"range of string %@", NSStringFromRange(range));
     357        ICLog(@"range of string %@", NSStringFromRange(range));
    354358        ICCF_ParseURL(s, &range);
    355359        ICLog(@"parsed range %@ |%@|", NSStringFromRange(range), [s substringWithRange: range]);
     
    432436}
    433437
    434 @end
     438// NSDraggingDestination
     439// -[TermSubview draggingUpdated:] just invokes draggingEntered...
     440// XXX Crashing on repeated drag snap-back can happen even without ICeCoffEE installed; don't bother to try to fix
     441- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender;
     442{
     443    if ([sender draggingSource] != self || ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)) {
     444        [super draggingEntered: sender];
     445        // When doing non-self drags, this works around one bug in Terminal wherein the option key acts as a toggle, and it shouldn't (see Aqua HIG).  Unfortunately, this messes up drag feedback for self drags, but I don't know of any way to fix it.  Not that most Cocoa apps get it remotely right, anyway.
     446        return NSDragOperationCopy;
     447    }
     448    return NSDragOperationNone;
     449}
     450
     451@end
Note: See TracChangeset for help on using the changeset viewer.