Changeset 436 for trunk/ICeCoffEE/ICeCoffEE/ICeCoffEE.m
- Timestamp:
- 03/05/08 03:01:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEE.m
r435 r436 153 153 Handle h = NULL; 154 154 155 NS_DURING155 @try { 156 156 h = NewHandle(len); 157 157 if (h == NULL) … … 174 174 err = ICCF_DoURLAction(ICCF_GetInst(), hint, *h, selStart, selEnd, action); 175 175 ICCF_OSErrCAssert(err, @"ICCF_DoURLAction"); 176 177 NS_HANDLER 176 } @finally { 178 177 DisposeHandle(h); 179 178 [urlString release]; 180 [localException raise]; 181 NS_ENDHANDLER 182 183 DisposeHandle(h); 184 [urlString release]; 179 } 185 180 186 181 return (err == noErr); … … 213 208 NSColor *insertionPointColor = [self insertionPointColor]; 214 209 215 NS_DURING 216 210 @try { 217 211 NSString *s = [[self textStorage] string]; // according to the class documentation, sending 'string' is guaranteed to be O(1) 218 212 unsigned length = [s length]; … … 260 254 } 261 255 } 262 263 NS_HANDLER 264 ICCF_HandleException(localException, triggeringEvent); 265 NS_ENDHANDLER 256 } @catch (NSException *e) { 257 ICCF_HandleException(e, triggeringEvent); 258 } 266 259 267 260 ICCF_StopIC();
Note:
See TracChangeset
for help on using the changeset viewer.