Changeset 24114
- Timestamp:
- 06/30/2008 01:48:26 PM (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Frameworks/AutoHyperlinks Framework/LinkDriver/LinkDriver-Info.plist
r23444 r24114 8 8 <string>${EXECUTABLE_NAME}</string> 9 9 <key>CFBundleIdentifier</key> 10 <string>com. yourcompany.LinkDriver</string>10 <string>com.adiumx.LinkDriver</string> 11 11 <key>CFBundleInfoDictionaryVersion</key> 12 12 <string>6.0</string> trunk/Frameworks/AutoHyperlinks Framework/LinkDriver/LinkDriverWindowController.m
r23923 r24114 14 14 @implementation LinkDriverWindowController 15 15 -(IBAction) linkifyTextView:(id)sender { 16 AHHyperlinkScanner *scanner = [[AHHyperlinkScanner alloc] initWithStrictChecking:NO];17 16 [NSThread detachNewThreadSelector:@selector(performLinkification:) 18 17 toTarget:self 19 withObject: [NSDictionary dictionaryWithObjectsAndKeys:scanner,SCANNER_KEY,linkifyView,VIEW_KEY,nil]];18 withObject:linkifyView]; 20 19 [NSThread detachNewThreadSelector:@selector(performLinkification:) 21 20 toTarget:self 22 withObject: [NSDictionary dictionaryWithObjectsAndKeys:scanner,SCANNER_KEY,otherView,VIEW_KEY,nil]];21 withObject:otherView]; 23 22 } 24 23 25 -(void) performLinkification:(NS Dictionary *)inDict24 -(void) performLinkification:(NSTextView *)inView 26 25 { 27 26 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]; 31 29 [pool release]; 32 30 }