Fix typo and spacing

This commit is contained in:
Benjamin Johnson 2023-05-29 22:14:11 +00:00
parent 1f7f4cd40f
commit 47a945603b
2 changed files with 9 additions and 9 deletions

View file

@ -716,13 +716,13 @@ PACKAGE_SCOPE
- (void) updateConstraintsForSubtreeIfNeeded;
- (NSLayoutPriority)contentHuggingPriorityForOrientation:(NSLayoutConstraintOrientation)orientation;
- (NSLayoutPriority) contentHuggingPriorityForOrientation: (NSLayoutConstraintOrientation)orientation;
- (void)setContentHuggingPriority:(NSLayoutPriority)priority forOrientation:(NSLayoutConstraintOrientation)orientation;
- (void) setContentHuggingPriority: (NSLayoutPriority)priority forOrientation: (NSLayoutConstraintOrientation)orientation;
- (NSLayoutPriority)contentCompressionResistancePriorityForOrientation:(NSLayoutConstraintOrientation)orientation;
- (NSLayoutPriority) contentCompressionResistancePriorityForOrientation: (NSLayoutConstraintOrientation)orientation;
- (void)setContentCompressionResistancePriority:(NSLayoutPriority)priority forOrientation:(NSLayoutConstraintOrientation)orientation;
- (void)setContentCompressionResistancePriority: (NSLayoutPriority)priority forOrientation: (NSLayoutConstraintOrientation)orientation;
@end

View file

@ -188,7 +188,7 @@ typedef NSInteger GSLayoutViewAttribute;
- (void) addIntrinsicContentSizeConstraintsToView: (NSView *)view;
- (void) addSupportingInstrictSizeConstraintsToView: (NSView *)view
- (void) addSupportingIntrinsicSizeConstraintsToView: (NSView *)view
orientation:
(NSLayoutConstraintOrientation)
orientation
@ -557,8 +557,8 @@ typedef NSInteger GSLayoutViewAttribute;
return @"maxY";
default:
[[NSException exceptionWithName: @"Not handled"
reason: @"GSLayoutAttribute not handled"
userInfo: nil] raise];
reason: @"GSLayoutAttribute not handled"
userInfo: nil] raise];
return nil;
}
}
@ -926,14 +926,14 @@ typedef NSInteger GSLayoutViewAttribute;
if (intrinsicContentSize.height != NSViewNoIntrinsicMetric)
{
[self
addSupportingInstrictSizeConstraintsToView: view
addSupportingIntrinsicSizeConstraintsToView: view
orientation: NSLayoutConstraintOrientationVertical
intrinsicSizeAttribute: GSLayoutViewAttributeIntrinsicHeight
dimensionAttribute: GSLayoutAttributeHeight];
}
}
- (void) addSupportingInstrictSizeConstraintsToView: (NSView *)view
- (void) addSupportingIntrinsicSizeConstraintsToView: (NSView *)view
orientation: (NSLayoutConstraintOrientation)orientation
intrinsicSizeAttribute: (GSLayoutViewAttribute)intrinsicSizeAttribute
dimensionAttribute: (GSLayoutAttribute)dimensionAttribute