itod / pegkit

'Parsing Expression Grammar' toolkit for Cocoa/Objective-C
MIT License
392 stars 37 forks source link

Feature/fix smart edit annoyance #45

Closed yepher closed 8 years ago

yepher commented 8 years ago

The attached changes are for issue #44 https://github.com/itod/pegkit/issues/44

The important bit of the change is adding:

    // Since maverics the check boxes in interface builder do not work to
    // turn off smart substitution on dashes and quotes
    [_textView setAutomaticDashSubstitutionEnabled:NO];
    [_textView setAutomaticQuoteSubstitutionEnabled:NO];

in PGDocument.m: - (void)windowControllerDidLoadNib:(NSWindowController *)w

This pull request also fixed build error due to old SDK version.