Skip to content

Commit 54a2f94

Browse files
committed
Replaced deprecated NSXxxxxTextAlignment constants with modern replacements.
1 parent c92e89d commit 54a2f94

4 files changed

+5
-5
lines changed

SSMoveableToolTip.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ - (id)init {
4747
[_textField setBezeled:NO];
4848
[_textField setBordered:NO];
4949
[_textField setDrawsBackground:NO];
50-
[_textField setAlignment:NSLeftTextAlignment];
50+
[_textField setAlignment:NSTextAlignmentLeft];
5151
[_textField setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
5252
[[_window contentView] addSubview:_textField];
5353

SSYAboutPanelController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ - (void) loadTextToScroll
127127
/*
128128
NSAttributedString *horizontalLine;
129129
NSMutableParagraphStyle* psCentered = [[[NSMutableParagraphStyle alloc] init] autorelease];
130-
[psCentered setAlignment:NSCenterTextAlignment] ;
130+
[psCentered setAlignment:NSTextAlignmentCenter] ;
131131
NSDictionary* dicCentered = [NSDictionary dictionaryWithObjectsAndKeys: psCentered, @"NSParagraphStyleAttributeName", nil] ;
132132
horizontalLine = [[[NSAttributedString alloc] initWithString: @"______________________________\n" attributes:dicCentered] autorelease];
133133
newline = [[[NSAttributedString alloc] initWithString: @"\n." attributes:dicCentered] autorelease];

SSYMiniProgressWindow.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ - (SSYMiniProgressWindow*)initWithVerb:(NSString*)verb
4848
[textField setFont:[NSFont systemFontOfSize:11.0]] ;
4949
// A newly-created NSTextField has string value "Field".
5050
[textField setStringValue:[verb ellipsize]] ;
51-
[textField setAlignment:NSCenterTextAlignment] ;
51+
[textField setAlignment:NSTextAlignmentCenter] ;
5252
[[self contentView] addSubview:textField] ;
5353
[textField release] ;
5454

@@ -66,4 +66,4 @@ - (void)dealloc {
6666
[super dealloc] ;
6767
}
6868
#endif
69-
@end
69+
@end

SSYProgressView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ - (SSYRolloverButton*)hyperButton {
243243
if (!_hyperButton) {
244244
_hyperButton = [[SSYRolloverButton alloc] initWithFrame:NSMakeRect(0,0,0,[self frame].size.height)] ;
245245
[_hyperButton setBordered:NO] ;
246-
[_hyperButton setAlignment:NSCenterTextAlignment] ;
246+
[_hyperButton setAlignment:NSTextAlignmentCenter] ;
247247
[self addSubview:_hyperButton] ;
248248
}
249249

0 commit comments

Comments
 (0)