Skip to content

Commit 04e05e7

Browse files
committed
Replaced more deprecated constants which I just found.
1 parent 9d0a1b1 commit 04e05e7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

SSYAlert.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ extern NSObject <SSYAlertErrorHideManager> * gSSYAlertErrorHideManager ;
186186
has additional features.
187187
188188
<p>
189-
The basic look is similar to Apple's alert.&nbsp; There are two columns, left and right.&nbsp;
189+
The basic look is similar to Apple's alert prior in macOS 10.15 and earlier.&nbsp; There are two columns, left and right.&nbsp;
190190
The left column may have, from top to bottom:
191191
<ul>
192192
<li> An icon</li>

SSYAlert.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ + (NSString*)contactSupportToolTip {
504504
+ (NSButton*)makeButton {
505505
NSButton* button = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 49, 49)] ;
506506
[button setFont:[NSFont systemFontOfSize:13]] ;
507-
[button setBezelStyle:NSRoundedBezelStyle] ;
507+
[button setBezelStyle:NSBezelStyleRounded] ;
508508
#if !__has_feature(objc_arc)
509509
[button autorelease] ;
510510
#endif
@@ -943,7 +943,7 @@ - (void)setSupportEmail {
943943
// However, testing shows that we need 38. Oh, well.
944944
NSRect frame = NSMakeRect(0, 0, 38.0, 38.0) ;
945945
button = [[NSButton alloc] initWithFrame:frame] ;
946-
[button setBezelStyle:NSRegularSquareBezelStyle] ;
946+
[button setBezelStyle:NSBezelStyleRegularSquare] ;
947947
[button setTarget:self] ;
948948
[button setAction:@selector(support:)] ;
949949
NSString* imagePath = [[NSBundle mainAppBundle] pathForResource:@"support"
@@ -1250,7 +1250,7 @@ - (void)setHelpAddress:(NSString*)helpAddress {
12501250
it works. It seems there should be an NSHelpButtonSize constant
12511251
but I can't find any. */
12521252
button = [[NSButton alloc] initWithFrame:frame] ;
1253-
[button setBezelStyle:NSHelpButtonBezelStyle] ;
1253+
[button setBezelStyle:NSBezelStyleHelpButton] ;
12541254
[button setTarget:self] ;
12551255
[button setAction:@selector(help:)] ;
12561256
[button setTitle:@""] ;

SSYShortcutActuator.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ + (NSString*)descriptionOfModifiers:(NSUInteger)modifiers {
175175
if (modifiers & NSEventModifierFlagOption) [string appendString:@"optn+"] ;
176176
if (modifiers & NSEventModifierFlagControl) [string appendString:@"ctrl+"] ;
177177
if (modifiers & NSEventModifierFlagShift) [string appendString:@"shft+"] ;
178-
if (modifiers & NSFunctionKeyMask) [string appendString:@"func+"] ;
178+
if (modifiers & NSEventModifierFlagFunction) [string appendString:@"func+"] ;
179179

180180
NSString* answer = [NSString stringWithString:string] ;
181181
[string release] ;

0 commit comments

Comments
 (0)