Skip to content

Commit 5a495eb

Browse files
committed
Updated deprecated NSWindow mask constants.
1 parent 54a2f94 commit 5a495eb

5 files changed

+5
-5
lines changed

SSMoveableToolTip.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ - (id)init {
2929

3030
_window = [[NSWindow alloc]
3131
initWithContentRect: contentRect
32-
styleMask: NSBorderlessWindowMask
32+
styleMask: NSWindowStyleMaskBorderless
3333
backing: NSBackingStoreBuffered
3434
defer: YES];
3535

SSYAboutPanelController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ - (void) createPanelToDisplay
1616
// Programmatically create the new panel
1717
panelToDisplay = [[NSFancyPanel alloc]
1818
initWithContentRect: [[panelInNib contentView] frame]
19-
styleMask: NSBorderlessWindowMask
19+
styleMask: NSWindowStyleMaskBorderless
2020
backing: [panelInNib backingType]
2121
defer: NO];
2222

SSYAlert.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,7 @@ - (id)init {
23132313
// is to make [window center] think it is a tall window and place it up
23142314
// fairly high on the screen.
23152315
NSWindow* window = [[SSYAlertWindow alloc] initWithContentRect:initialRect
2316-
styleMask:NSTitledWindowMask
2316+
styleMask:NSWindowStyleMaskTitled
23172317
backing:NSBackingStoreBuffered
23182318
defer:NO] ;
23192319
/* NSWindow has nonstandard memory management. Note that, under non-ARC,

SSYHintArrow.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ - (SSYHintArrow *)initAttachedToPoint:(NSPoint)point
174174
NSRect contentRect = NSMakeRect(0.0, 0.0, m_size.width, m_size.height) ;
175175
contentRect.size = m_size ;
176176
if ((self = [super initWithContentRect:contentRect
177-
styleMask:NSBorderlessWindowMask
177+
styleMask:NSWindowStyleMaskBorderless
178178
backing:NSBackingStoreBuffered
179179
defer:NO])) {
180180
// Parameters for displaying the fat blue arrow.

SSYMiniProgressWindow.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ - (SSYMiniProgressWindow*)initWithVerb:(NSString*)verb
1111
point.y -= SSY_MINI_PROGRESS_WINDOW_HEIGHT ;
1212
NSRect rect = NSMakeRect(0.0, 0.0, SSY_MINI_PROGRESS_WINDOW_WIDTH, SSY_MINI_PROGRESS_WINDOW_HEIGHT) ;
1313
self = [super initWithContentRect:rect
14-
styleMask:NSBorderlessWindowMask
14+
styleMask:NSWindowStyleMaskBorderless
1515
backing:NSBackingStoreBuffered
1616
defer:NO] ;
1717
if (self) {

0 commit comments

Comments
 (0)