wokalski / Distraction-Free-Xcode-plugin

Experience ZEN in Xcode. Distraction free mode, styled after Sublime
MIT License
51 stars 6 forks source link

Fix "No Editor" in macOS Sierra by giving the editorContext a tab controller #54

Closed peyton closed 8 years ago

peyton commented 8 years ago

Hey, running macOS Sierra Seed 1 (16A201w) and Xcode 7.3.1 GM (7D1014) and getting:

screenshot 2016-06-28 17 51 01

When calling -[editorContext openEditorOpenSpecifier:editorConfiguration.openSpecifier] in -[ZEN makeWindowController], -[IDEEditorContext _navigableItemForEditingFromArchivedRepresentation:error:] was bailing because it couldn't find a workspace tab controller. macOS Sierra pushed Safari's tab controller systemwide, so maybe that has something to do with it...

This PR gives the editor context the active tab controller.

Seems to work now. Not tested on anything other than macOS Sierra Seed 1 and Xcode 7.3.1 GM.

ithron commented 8 years ago

I'm having the same problem with Mac OS 10.11.6 and Xcode 7.3.1. This PR also fixed the issue for me.

wokalski commented 8 years ago

I'm not supporting the project anymore but community patches are more than welcome. Thank you for your time. I must have forgotten about this PR.