Adium

Changeset 24114

Show
Ignore:
Timestamp:
06/30/2008 01:48:26 PM (6 months ago)
Author:
sholt
Message:

Tweaks to the linkDriver app thread implimentation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/AutoHyperlinks Framework/LinkDriver/LinkDriver-Info.plist

    r23444 r24114  
    88        <string>${EXECUTABLE_NAME}</string> 
    99        <key>CFBundleIdentifier</key> 
    10         <string>com.yourcompany.LinkDriver</string> 
     10        <string>com.adiumx.LinkDriver</string> 
    1111        <key>CFBundleInfoDictionaryVersion</key> 
    1212        <string>6.0</string> 
  • trunk/Frameworks/AutoHyperlinks Framework/LinkDriver/LinkDriverWindowController.m

    r23923 r24114  
    1414@implementation LinkDriverWindowController 
    1515-(IBAction) linkifyTextView:(id)sender { 
    16         AHHyperlinkScanner      *scanner = [[AHHyperlinkScanner alloc] initWithStrictChecking:NO]; 
    1716        [NSThread       detachNewThreadSelector:@selector(performLinkification:) 
    1817                                                           toTarget:self 
    19                                                          withObject:[NSDictionary dictionaryWithObjectsAndKeys:scanner,SCANNER_KEY,linkifyView,VIEW_KEY,nil]]; 
     18                                                         withObject:linkifyView]; 
    2019        [NSThread       detachNewThreadSelector:@selector(performLinkification:) 
    2120                                                           toTarget:self 
    22                                                          withObject:[NSDictionary dictionaryWithObjectsAndKeys:scanner,SCANNER_KEY,otherView,VIEW_KEY,nil]]; 
     21                                                         withObject:otherView]; 
    2322} 
    2423 
    25 -(void) performLinkification:(NSDictionary *)inDict 
     24-(void) performLinkification:(NSTextView *)inView 
    2625{ 
    2726        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 
    28         AHHyperlinkScanner      *scanner = [inDict objectForKey:SCANNER_KEY]; 
    29         NSTextView      *myView = [inDict objectForKey:VIEW_KEY]; 
    30         [scanner linkifyTextView:[myView retain]]; 
     27        AHHyperlinkScanner      *scanner = [[AHHyperlinkScanner alloc] initWithStrictChecking:NO]; 
     28        [scanner linkifyTextView:inView]; 
    3129        [pool release]; 
    3230}