a little Controller cleaning
This commit is contained in:
parent
d65612a157
commit
d9e3d6b0b1
|
@ -58,8 +58,6 @@
|
||||||
#define ROW_HEIGHT_SMALL 40.0
|
#define ROW_HEIGHT_SMALL 40.0
|
||||||
#define WINDOW_REGULAR_WIDTH 468.0
|
#define WINDOW_REGULAR_WIDTH 468.0
|
||||||
|
|
||||||
#define MAX_URL_WINDOW_WIDTH 5000
|
|
||||||
|
|
||||||
#define UPDATE_UI_SECONDS 1.0
|
#define UPDATE_UI_SECONDS 1.0
|
||||||
#define AUTO_SPEED_LIMIT_SECONDS 5.0
|
#define AUTO_SPEED_LIMIT_SECONDS 5.0
|
||||||
|
|
||||||
|
@ -221,8 +219,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
[[fTableView tableColumnWithIdentifier: @"Torrent"] setDataCell: [[TorrentCell alloc] init]];
|
[[fTableView tableColumnWithIdentifier: @"Torrent"] setDataCell: [[TorrentCell alloc] init]];
|
||||||
|
|
||||||
[fTableView registerForDraggedTypes: [NSArray arrayWithObjects: NSFilenamesPboardType,
|
[fTableView registerForDraggedTypes: [NSArray arrayWithObjects: NSFilenamesPboardType,
|
||||||
NSURLPboardType,
|
NSURLPboardType, TORRENT_TABLE_VIEW_DATA_TYPE, nil]];
|
||||||
TORRENT_TABLE_VIEW_DATA_TYPE, nil]];
|
|
||||||
|
|
||||||
//register for sleep notifications
|
//register for sleep notifications
|
||||||
IONotificationPortRef notify;
|
IONotificationPortRef notify;
|
||||||
|
@ -539,7 +536,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
[[NSFileManager defaultManager] removeFileAtPath: path handler: nil];
|
[[NSFileManager defaultManager] removeFileAtPath: path handler: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) application: (NSApplication *) sender openFiles: (NSArray *) filenames
|
- (void) application: (NSApplication *) app openFiles: (NSArray *) filenames
|
||||||
{
|
{
|
||||||
[self openFiles: filenames ignoreDownloadFolder: NO forceDeleteTorrent: NO];
|
[self openFiles: filenames ignoreDownloadFolder: NO forceDeleteTorrent: NO];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue