Ticket #200 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

Use selection for Find is always disabled

Reported by: Allan Odgaard Assigned to: rinoa
Priority: normal Component: Colloquy (GUI)
Version: Latest 2.1 Severity: normal
Keywords: Cc:

Description

I frequently use cmd-E in all my Mac applications, so I'd love to see this implemented for the message list.

Here's a category method I use myself for the web view (since the writeSelectionToPBoard doesn't seem to work):

- (IBAction)copySelectionToFindPboard:(id)sender {

DOMDocumentFragment* selection = [[self selectedDOMRange] cloneContents]; DOMNodeIterator* iter = selection ? [[[self mainFrame] DOMDocument] createNodeIterator:selection :DOM_SHOW_TEXT :nil :YES] : nil;

NSMutableString* str = [NSMutableString string]; while(DOMNode* node = [iter nextNode])

[str appendString:[node nodeValue]];

if(![str isEqualToString:@""]) {

NSPasteboard* pboard = [NSPasteboard pasteboardWithName:NSFindPboard]; [pboard declareTypes:[NSArray arrayWithObject:NSStringPboardType] owner:nil]; [pboard setString:str forType:NSStringPboardType];

}

}

Change History

08/19/06 23:29:00 changed by rinoa

  • owner changed from timothy to rinoa.
  • status changed from new to assigned.
  • version changed from 2.0 (2D16) to Latest 2.1.

08/19/06 23:36:52 changed by rinoa

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [3332]