Skip to content

Comments

Macos 10.12 fixes#4

Open
uliwitness wants to merge 5 commits intonickshanks:masterfrom
uliwitness:macos-10-12-fixes
Open

Macos 10.12 fixes#4
uliwitness wants to merge 5 commits intonickshanks:masterfrom
uliwitness:macos-10-12-fixes

Conversation

@uliwitness
Copy link
Contributor

A few minimal fixes needed to make this build & generally work on 10.12.

Uli Kusterer added 4 commits January 10, 2017 16:05
…72bcfa41fc88ca7'" because the repo has no tags. Use --always to give the hash in that case.
…umn being wrapped (the colon didn't fit in the line anymore). We now try to actually use Courier's size for some of the calculations instead of hardcoded magic numbers, but we should revisit this code.

// run panel
int button = [super runModalOpenPanel:openPanel forTypes:extensions];
int button = [super runModalOpenPanel:openPanel forTypes:nil/*extensions*/];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just set this to 'nil'

NSDictionary *dictionary = [NSDictionary dictionaryWithObject:paragraph forKey:NSParagraphStyleAttributeName];

NSMutableParagraphStyle *hexParagraph = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
//[hexParagraph setLineBreakMode:NSLineBreakByCharWrapping];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove this line too? if it wraps at all, the next line gets screwed up, so we'd never uncomment it

Copy link
Owner

@nickshanks nickshanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add some tags :-)

@@ -274,8 +274,6 @@ - (NSGradient *)gradientWithAlpha:(CGFloat)alpha
@implementation NSOpenGLContext (CGLContextAccess)
- (CGLContextObj)cglContext;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole function is redundant if the app won't compile on 10.2 (which it doesn't any more) — just delete it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants