@@ -147,7 +147,7 @@ - (void)configureForSSYAlertUsage {
147
147
// The next two lines are very important. Took me many months to learn that,
148
148
// by default, NSTextViews will resize themselves automatically to accomodate
149
149
// a changed text size, and what's even more confusing is that they do so
150
- // when you (or a superview) invoke -setNeedsDisplay: or -display on them .
150
+ // when you (or a superview) sets their `needsDisplay` property to YES .
151
151
// When used in SSYAlert, SSYAlert wants to set their size manually, in its
152
152
// -display method. In particular, if SSYAlert's ivar allowsShrinking is set
153
153
// to NO, in fact we want them to maintain their height when automatic resizing
@@ -206,7 +206,7 @@ @interface SSYAlert ()
206
206
@implementation SSYAlertWindow
207
207
208
208
- (NSInteger )checkboxState {
209
- NSInteger state = NSMixedState ; // default answer in case we can't find checkbox
209
+ NSInteger state = NSControlStateValueMixed ; // default answer in case we can't find checkbox
210
210
BOOL didFindCheckbox = NO ;
211
211
for (NSView * view in [[self contentView ] subviews ]) {
212
212
if ([view isKindOfClass: [SSYWrappingCheckbox class ]]) {
@@ -219,7 +219,7 @@ - (NSInteger)checkboxState {
219
219
220
220
if (!didFindCheckbox) {
221
221
// Until BookMacster 1.22.4, logged Internal Error 624-9382
222
- state = NSOffState ;
222
+ state = NSControlStateValueOff ;
223
223
}
224
224
225
225
return state ;
@@ -816,7 +816,7 @@ - (IBAction)clickedButton:(id)sender {
816
816
object: self ] ;
817
817
}
818
818
819
- if ([self checkboxState ] == NSOnState ) {
819
+ if ([self checkboxState ] == NSControlStateValueOn ) {
820
820
[[self checkboxInvocation ] invoke ] ;
821
821
}
822
822
0 commit comments