Changeset 5168
- Timestamp:
- 01/16/08 08:31:06 (6 months ago)
- Files:
-
- WiredClient/trunk/WCPreferences.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCPreferences.m
r5042 r5168 1621 1621 NSArray *types; 1622 1622 NSInteger fromRow; 1623 NSUInteger index; 1623 1624 1624 1625 pasteboard = [info draggingPasteboard]; … … 1628 1629 fromRow = [[pasteboard stringForType:WCBookmarkPboardType] integerValue]; 1629 1630 dictionary = [[WCSettings objectForKey:WCBookmarks] mutableCopy]; 1630 [dictionary moveObjectAtIndex:fromRow toIndex:row];1631 index = [dictionary moveObjectAtIndex:fromRow toIndex:row]; 1631 1632 [WCSettings setObject:dictionary forKey:WCBookmarks]; 1632 1633 [dictionary release]; 1633 1634 1634 [tableView selectRow: (row == (NSInteger) [dictionary count]) ? row - 1 : rowbyExtendingSelection:NO];1635 [tableView selectRow:index byExtendingSelection:NO]; 1635 1636 1636 1637 [[NSNotificationCenter defaultCenter] postNotificationName:WCBookmarksDidChange object:self]; … … 1659 1660 fromRow = [[pasteboard stringForType:WCTrackerBookmarkPboardType] integerValue]; 1660 1661 dictionary = [[WCSettings objectForKey:WCTrackerBookmarks] mutableCopy]; 1661 [dictionary moveObjectAtIndex:fromRow toIndex:row];1662 index = [dictionary moveObjectAtIndex:fromRow toIndex:row]; 1662 1663 [WCSettings setObject:dictionary forKey:WCTrackerBookmarks]; 1663 1664 [dictionary release]; 1664 1665 [tableView selectRow: (row == (NSInteger) [dictionary count]) ? row - 1 : rowbyExtendingSelection:NO];1666 1665 1666 [tableView selectRow:index byExtendingSelection:NO]; 1667 1667 1668 [[NSNotificationCenter defaultCenter] postNotificationName:WCTrackerBookmarksDidChange object:self]; 1668 1669
