- Timestamp:
- 02/24/09 19:00:40 (16 years ago)
- Location:
- trunk/ICeCoffEE/ICeCoffEE
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/English.lproj/Localizable.strings
r470 r495 74 74 75 75 76 /**** Terminal /WebKitlaunching errors ****/76 /**** Terminal launching errors ****/ 77 77 78 78 /* Word selection produced nothing */ -
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEE.m
r440 r495 219 219 NSCAssert(range.location != NSNotFound, ICCF_LocalizedString(@"There is no insertion point or selection in the text field where you clicked")); 220 220 NSString *url = nil; 221 222 if (range.location == length) 223 range.location--; // Leopard text storage complains "out of range" 221 224 222 225 if ([[self textStorage] attribute: NSLinkAttributeName atIndex: range.location -
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEWebKit.m
r467 r495 16 16 // Safari 3.1 and earlier (pre-r31014) 17 17 // eliminated in http://bugs.webkit.org/show_bug.cgi?id=17640 18 // but convertNSRangeToDOMRange: (temporarily) restored in r39145 18 19 @interface WebCoreFrameBridge : NSObject 19 20 - (DOMRange *)convertNSRangeToDOMRange:(NSRange)range; … … 34 35 35 36 - (WebView *)_webView; 36 - (WebCoreFrameBridge *)_bridge; // moved from WebNSViewExtras in r14032; removed in r31014 37 - (WebCoreFrameBridge *)_bridge; // moved from WebNSViewExtras in r14032; removed in r31014 then (temporarily) restored in r39145 37 38 - (WebFrame *)_frame; // moved from WebNSViewExtras in r14032 38 39 … … 126 127 ICLog(@"elementDict: %@", elementDict); 127 128 128 NSAssert([elementDict count] != 0, ICCF_LocalizedString(@"Sorry, ICeCoffEE was unable to find anything to select")); 129 if ([elementDict count] == 0) 130 return; 129 131 130 132 elementIsEditable = [[elementDict objectForKey: @"WebElementIsContentEditableKey"] boolValue]; … … 180 182 181 183 NSRange range = [ICeCoffEETrigger rangeForEvent: downEvent onTarget: (NSView<NSTextInput> *)self]; 182 NSAssert(range.location != NSNotFound, ICCF_LocalizedString(@"Sorry, ICeCoffEE was unable to find anything to select")); 184 if (range.location == NSNotFound) 185 return; 183 186 184 187 WebFrame *frame = [(WebHTMLView *)self _frame]; … … 196 199 ICLog(@"Using stringForRange:"); 197 200 domRange = [(WebHTMLView *)self _documentRange]; 198 if (bridge != nil) 201 if ([frame respondsToSelector: @selector(_stringForRange:)]) 202 s = [frame _stringForRange: domRange]; 203 else if (bridge != nil && [bridge respondsToSelector: @selector(stringForRange:)]) 199 204 s = [bridge stringForRange: domRange]; 200 else if (![frame respondsToSelector: @selector(_stringForRange:)]) 205 else { 206 ICLog(@"WebKit has neither -[WebFrame _stringForRange:] nor -[WebCoreFrameBridge stringForRange:]"); 201 207 return; // WebKit too new? 202 else 203 s = [frame _stringForRange: domRange]; 208 } 204 209 } 205 210 206 211 if (bridge == nil && ![frame respondsToSelector: @selector(_convertNSRangeToDOMRange:)]) { 212 ICLog(@"WebKit has no bridge and no -[WebFrame _convertNSRangeToDOMRange:]"); 207 213 return; // WebKit too new? 208 214 } -
trunk/ICeCoffEE/ICeCoffEE/VERSION.xcconfig
r485 r495 1 CURRENT_MARKETING_VERSION=1.5b 41 CURRENT_MARKETING_VERSION=1.5b5
Note:
See TracChangeset
for help on using the changeset viewer.