Changeset 24351
- Timestamp:
- 07/15/2008 01:07:09 AM (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plugins/Link Management/SHLinkManagementPlugin.m
r22905 r24351 111 111 if (earliestTextView) { 112 112 NSRange selectedRange = [earliestTextView selectedRange]; 113 id selectedLink = nil;114 113 115 114 if ([[earliestTextView textStorage] length] && … … 117 116 selectedRange.location != [[earliestTextView textStorage] length]) { 118 117 119 selectedLink =[[earliestTextView textStorage] attribute:NSLinkAttributeName120 atIndex:selectedRange.location121 effectiveRange:&selectedRange];118 [[earliestTextView textStorage] attribute:NSLinkAttributeName 119 atIndex:selectedRange.location 120 effectiveRange:&selectedRange]; 122 121 [[earliestTextView textStorage] removeAttribute:NSLinkAttributeName range:selectedRange]; 123 122 }