Ignore:
Timestamp:
06/15/07 05:15:03 (17 years ago)
Author:
Nicholas Riley
Message:

ICeCoffEE.m: I was wrong in [319] about the selection extension stuff
being dumb; explain why in code, even though it's not fixed.
Implement some of the same parens support I did in Terminal. Update
for more robust service info dictionary format.

ICeCoffEEServicePrefController.m: Update for more robust service info
dictionary format.

ICeCoffEEServices.[hm]: Renamed from ICeCoffEESetServicesMenu.[hm],
since we do more now. Service info dictionary-creating code now makes
more sense and no longer has naming collision issues.

ICeCoffEEWebKit.m: Some preliminary Safari 3 compatibility stuff, not
quite working yet. An outstanding question - is it better to rely on
"public" WebCore API or private WebKit API? So far it seems the
latter is more stable.

English.lproj/APEInfo.rtfd: The Bored Zo has a name: use it. Remove
now-erroneous reference to SimpleText since TextEdit support is gone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/ICeCoffEETerminal.m

    r319 r320  
    326326            NSCAssert(delimiterRange.length == 1, @"Internal error: delimiter matched range is not of length 1");
    327327            [selRange growBackwardByLength: [s length] - delimiterRange.location - 1];
    328             // in https://www-s.acm.uiuc.edu/wiki/space/(user)njriley - handle clicking inside or after (user).
     328           
     329            // in url/(parens)stuff, handle clicking inside or after (parens).
    329330            if ([s characterAtIndex: delimiterRange.location] == '(') {
    330331                s = [selRange stringFromRange];
     
    332333                    [s rangeOfCharacterFromSet: [NSCharacterSet characterSetWithCharactersInString: @"/."]].location == NSNotFound) {
    333334                    [selRange growBackwardByLength: 1];
    334                     ICLog(@"expanding past (, now %@", selRange);
     335                    ICLog(@"expanding past (, now |%@|", selRange);
    335336                    [termRange shrinkBackByLength: [[termRange stringFromRange] length] - delimiterRange.location];
    336337                    goto expandFront;
     
    355356            NSCAssert(delimiterRange.length == 1, @"Internal error: delimiter matched range is not of length 1");
    356357            [selRange growForwardByLength: delimiterRange.location];
    357             // URL may look like "https://www-s.acm.uiuc.edu/wiki/space/(user" now; expand if so
     358           
     359            // grow URL past closing paren if we've seen an open paren
    358360            if ([s characterAtIndex: delimiterRange.location] == ')' &&
    359361                [[selRange stringFromRange] rangeOfString: @"("].location != NSNotFound) {
    360362                [selRange growForwardByLength: 1];
    361                 ICLog(@"expanding past ), now %@", selRange);
     363                ICLog(@"expanding past ), now |%@|", selRange);
    362364                [termRange shrinkFrontByLength: delimiterRange.location + 1];
    363365                goto expandBack;
Note: See TracChangeset for help on using the changeset viewer.