Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
[#449] replaced deprecated gestalt calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mackuba committed Mar 29, 2015
1 parent d720d47 commit c4d34ae
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Hive/Controllers/HITransactionPopoverViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,10 @@ - (BOOL)isSharingSupported {
- (void)configureShareButton {
[self.shareButton sendActionOn:NSLeftMouseDownMask];

SInt32 major = 0;
SInt32 minor = 0;
Gestalt(gestaltSystemVersionMajor, &major);
Gestalt(gestaltSystemVersionMinor, &minor);
NSProcessInfo *processInfo = [NSProcessInfo processInfo];
BOOL yosemiteOrAbove = [processInfo respondsToSelector:@selector(operatingSystemVersion)];

if (major == 10 && minor < 10) {
if (!yosemiteOrAbove) {
// the "Bevel" button style looks nice on Yosemite, but ugly on pre-Yosemite systems
[self.shareButton.cell setBezelStyle:NSTexturedRoundedBezelStyle];
}
Expand Down

0 comments on commit c4d34ae

Please sign in to comment.