Ignore:
Timestamp:
03/05/08 03:01:09 (16 years ago)
Author:
Nicholas Riley
Message:

Use @try/@catch/@finally rather than macro-based exceptions

File:
1 edited

Legend:

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

    r388 r436  
    7171            return;
    7272
    73         NS_DURING
     73        @try {
    7474            NSPoint viewClickPt = [self convertPoint: downPt fromView: nil];
    7575            NSDictionary *elementDict = [(WebHTMLView *)self elementAtPoint: viewClickPt];
     
    7979            if ([elementDict objectForKey: @"WebElementLinkURL"] != nil) {
    8080                ICLog(@"got a link");
    81                 NS_VOIDRETURN; // don't activate on links
     81                return; // don't activate on links
    8282            }
    8383            if (selectedString == nil || [selectedString length] == 0) {
    8484                ICLog(@"no selected string");
    85                 NS_VOIDRETURN;
     85                return;
    8686            }
    8787            ICCF_StartIC();
     
    110110                }
    111111            }
    112         NS_HANDLER
    113             ICCF_HandleException(localException, downEvent);
    114         NS_ENDHANDLER
     112        } @catch (NSException *e) {
     113            ICCF_HandleException(e, downEvent);
     114        } @finally {
     115            [downEvent release]; downEvent = nil;
     116        }
    115117
    116         [downEvent release]; downEvent = nil;
    117118        ICCF_StopIC();
    118119    }       
Note: See TracChangeset for help on using the changeset viewer.