update NEWS and add a little efficiency for the last commit

This commit is contained in:
Mitchell Livingston 2008-01-11 05:04:40 +00:00
parent 1f862a70e6
commit 4a6c14bc01
2 changed files with 27 additions and 17 deletions

1
NEWS
View File

@ -3,6 +3,7 @@ NEWS file for Transmission <http://transmission.m0k.org/>
1.10 (2008/xx/yy)
- OS X:
+ Window when adding torrents to select files and other settings
+ Leopard: Fix to allow double-clicking the icon to reveal in Finder, double-clicking the progress string to toggle between selected and total progress, and double-clicking anywhere else to toggle the inspector
1.01 (2008/xx/yy)
- All Platforms:

View File

@ -100,7 +100,6 @@
- (void) mouseDown: (NSEvent *) event
{
NSLog(@"down");
fClickPoint = [self convertPoint: [event locationInWindow] fromView: nil];
if ([self pointInActionRect: fClickPoint])
@ -147,9 +146,13 @@
}
- (void) mouseUp: (NSEvent *) event
{
int oldRow;
if (fClickIn)
{
NSPoint point = [self convertPoint: [event locationInWindow] fromView: nil];
int row = [self rowAtPoint: point], oldRow = [self rowAtPoint: fClickPoint];
int row = [self rowAtPoint: point];
oldRow = [self rowAtPoint: fClickPoint];
if (row == oldRow && [self pointInPauseRect: point] && [self pointInPauseRect: fClickPoint])
{
@ -170,11 +173,17 @@
else if (row == oldRow && [self pointInRevealRect: point] && [self pointInRevealRect: fClickPoint])
[[fTorrents objectAtIndex: row] revealData];
else;
}
[super mouseUp: event];
fClickPoint = NSZeroPoint;
#warning need fClickIn?
BOOL wasClickIn = fClickIn;
fClickIn = NO;
if (wasClickIn)
[self setNeedsDisplayInRect: [self rectOfRow: oldRow]];
}