mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
#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:
@@ -22,15 +22,12 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*****************************************************************************/
|
||||
|
||||
#define NSPopoverLion NSClassFromString(@"NSPopover")
|
||||
#define NSDataDetectorLion NSClassFromString(@"NSDataDetector")
|
||||
#define NSByteCountFormatterMtLion NSClassFromString(@"NSByteCountFormatter")
|
||||
#define NSUserNotificationMtLion NSClassFromString(@"NSUserNotification")
|
||||
#define NSUserNotificationCenterMtLion NSClassFromString(@"NSUserNotificationCenter")
|
||||
|
||||
@interface NSApplication (NSApplicationAdditions)
|
||||
|
||||
- (BOOL) isOnLionOrBetter;
|
||||
- (BOOL) isOnMountainLionOrBetter;
|
||||
- (BOOL) isOnYosemiteOrBetter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user