Changeset 139 for trunk/ICeCoffEE/ICeCoffEE/ICeCoffEETerminal.m
- Timestamp:
- 05/31/03 05:04:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEETerminal.m
r106 r139 53 53 - (NSArray*)validAttributesForMarkedText { return nil; } 54 54 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 56 60 - (void)_optionClickEvent:(NSEvent *)event:(unsigned int)row:(unsigned short)column {} 57 61 - (void)setNeedsDisplay; {} … … 351 355 352 356 ICLog(@"parsed back %@", selRange); 353 NSLog(@"range of string %@", NSStringFromRange(range));357 ICLog(@"range of string %@", NSStringFromRange(range)); 354 358 ICCF_ParseURL(s, &range); 355 359 ICLog(@"parsed range %@ |%@|", NSStringFromRange(range), [s substringWithRange: range]); … … 432 436 } 433 437 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.