This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)makeFirstTextInputSubviewKeyView { | |
NSWindow *theWindow = [self window]; | |
if ([theWindow isVisible]) { | |
NSArray *theTopLevelSubviews = [self subviews]; | |
if ([theTopLevelSubviews count]>0) { | |
Class theTextFieldClass = [NSTextField class]; | |
Class theTextViewClass = [NSTextView class]; | |
NSMutableArray *theTextInputSubviews = [NSMutableArray array]; | |
__block void (^PMCollectTextInputSubviews)(NSArray *) = ^(NSArray *theSubviews) { | |
for (NSView *aSubview in theSubviews) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSBundle (PMExtensions) | |
+ (BOOL)vintageStyleLoadNibNamed: (NSString*)theName owner: (id)theOwner { | |
#if __MAC_OS_X_VERSION_MIN_REQUIRED<__MAC_10_8 | |
return [self loadNibNamed: theName owner: theOwner]; | |
#else | |
BOOL didLoad = NO; | |
NSNib *theNib = [[NSNib alloc] initWithNibNamed: theName bundle: nil]; | |
if (theNib) { | |
NSArray *theTopLevelObjects = nil; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[findRegularExpression "[ÀàÁáÂâÃãÄäÅåĀāĂ㥹ǞǟǺǻ]", <name>, "a"] | |
[findRegularExpression "[ÆæǼǽ]", <name>, "ae"] | |
[findRegularExpression "[Ḃḃ]", <name>, "b"] | |
[findRegularExpression "[ĆćÇçČčĈĉĊċ]", <name>, "c"] | |
[findRegularExpression "[ḐḑĎďḊḋĐđÐðDZdzDŽdž]", <name>, "d"] | |
[findRegularExpression "[ÈèÉéĚěÊêËëĒēĔĕĘęĖėƷʒǮǯ]", <name>, "e"] | |
[findRegularExpression "[Ḟḟƒfffiflffifflſt]", <name>, "f"] | |
[findRegularExpression "[ǴǵĢģǦǧĜĝĞğĠġǤǥ]", <name>, "g"] | |
[findRegularExpression "[ĤĥĦħ]", <name>, "h"] | |
[findRegularExpression "[ÌìÍíÎîĨĩÏïĪīĬĭĮįİıIJij]", <name>, "i"] |