#6042: Remove dead code now that we build for OS X 10.7+ (patch by mattrajca)

In addition to the patch,
  * remove unused global actions menu (popover is used instead)
  * remove *Lion class macros, use NSPopover and NSDataDetector directly
This commit is contained in:
Mike Gelfand
2016-01-06 11:05:37 +00:00
parent 53c38c760d
commit 147ae097f4
24 changed files with 157 additions and 2100 deletions

View File

@@ -66,9 +66,8 @@ tr_session * fLib = NULL;
fTimer = [[NSTimer scheduledTimerWithTimeInterval: UPDATE_SECONDS target: self selector: @selector(updateStats) userInfo: nil repeats: YES] retain];
[[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSModalPanelRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSEventTrackingRunLoopMode];
if ([NSApp isOnLionOrBetter])
[[self window] setRestorationClass: [self class]];
[[self window] setRestorationClass: [self class]];
[[self window] setTitle: NSLocalizedString(@"Statistics", "Stats window -> title")];