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

Commit

Permalink
Merge pull request #1 from acrollet/master
Browse files Browse the repository at this point in the history
Mac OS Sierra updates
  • Loading branch information
Townk authored Oct 5, 2016
2 parents 9c0a80e + e259f22 commit 18431ac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GMailinator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 499015E81615FE5300991F6C /* Build configuration list for PBXNativeTarget "GMailinator" */;
buildPhases = (
A718F5961A681B6700545966 /* Save current UUID to Info.plist */,
A718F5961A681B6700545966 /* Save current UUID to Info.plist */,
499015D61615FE5300991F6C /* Sources */,
499015D71615FE5300991F6C /* Frameworks */,
499015D81615FE5300991F6C /* Resources */,
Expand Down
10 changes: 8 additions & 2 deletions GMailinator/GMailinator.m
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,14 @@ -(NSEvent*)getShortcutRemappedEventFor:(NSEvent*)event {
}

- (void)overrideMailKeyDown:(NSEvent*)event {
id messageViewer = [[self performSelector:@selector(delegate)]
performSelector:@selector(delegate)];
id tableViewManager = [self performSelector:@selector(delegate)];
id messageListViewController = [tableViewManager performSelector:@selector(delegate)];

// NOTE: backwards compatibility. In 10.11 and earlier, tableViewManager.delegate.delegate was already the message viewer.
id messageViewer
= [messageListViewController respondsToSelector:@selector(messageViewer)]
? [messageListViewController performSelector:@selector(messageViewer)]
: messageListViewController;

if (! [self performSelectorOnMessageViewer:messageViewer basedOnEvent:event]) {
[self overrideMailKeyDown:[self getShortcutRemappedEventFor:event]];
Expand Down
Binary file modified GMailinator/Info.plist
Binary file not shown.

0 comments on commit 18431ac

Please sign in to comment.