get reordering of torrent queue working again in trunk (thanks to cocoadev mailing list)
This commit is contained in:
parent
a6206b036c
commit
ffeff31ca3
|
@ -2094,7 +2094,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
}
|
||||
}
|
||||
|
||||
#warning look into
|
||||
- (void) setLimitGlobalEnabled: (id) sender
|
||||
{
|
||||
[fPrefsController applySpeedSettings: nil];
|
||||
|
@ -2260,7 +2259,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
return nil;
|
||||
}
|
||||
|
||||
#warning not working in Leopard
|
||||
- (BOOL) tableView: (NSTableView *) tableView writeRowsWithIndexes: (NSIndexSet *) indexes toPasteboard: (NSPasteboard *) pasteboard
|
||||
{
|
||||
//only allow reordering of rows if sorting by order with no filter
|
||||
|
@ -2269,8 +2267,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
&& [[fSearchFilterField stringValue] length] == 0)
|
||||
{
|
||||
[pasteboard declareTypes: [NSArray arrayWithObject: TORRENT_TABLE_VIEW_DATA_TYPE] owner: self];
|
||||
[pasteboard setData: [NSKeyedArchiver archivedDataWithRootObject: indexes]
|
||||
forType: TORRENT_TABLE_VIEW_DATA_TYPE];
|
||||
[pasteboard setData: [NSKeyedArchiver archivedDataWithRootObject: indexes] forType: TORRENT_TABLE_VIEW_DATA_TYPE];
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<integer>5</integer>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>1326</integer>
|
||||
<integer>236</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>9A581</string>
|
||||
|
|
Binary file not shown.
|
@ -156,6 +156,11 @@
|
|||
inBounds: bounds];
|
||||
}
|
||||
|
||||
- (NSUInteger) hitTestForEvent: (NSEvent *) event inRect: (NSRect) cellFrame ofView: (NSView *) controlView
|
||||
{
|
||||
return NSCellHitContentArea;
|
||||
}
|
||||
|
||||
- (void) drawInteriorWithFrame: (NSRect) cellFrame inView: (NSView *) controlView
|
||||
{
|
||||
[super drawInteriorWithFrame: cellFrame inView: controlView];
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
#warning not always working
|
||||
#warning not working on Leopard
|
||||
- (void) mouseUp: (NSEvent *) event
|
||||
{
|
||||
//NSLog(@"up");
|
||||
|
|
Loading…
Reference in New Issue