From f4367797a1d44f4a72342a25bb904fbae9170304 Mon Sep 17 00:00:00 2001 From: Christopher Lloyd Date: Fri, 8 Jan 2010 01:48:11 +0000 Subject: [PATCH] change use of -[NSWindow _setStyleMask:] to setStyleMask: --- AppKit/NSAlert.m | 4 ++-- AppKit/NSApplication.m | 2 +- AppKit/NSWindow-Private.h | 1 - AppKit/NSWindow.m | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/AppKit/NSAlert.m b/AppKit/NSAlert.m index 9e3e3d2a..056bcabc 100644 --- a/AppKit/NSAlert.m +++ b/AppKit/NSAlert.m @@ -429,7 +429,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI } -(void)beginSheetModalForWindow:(NSWindow *)window modalDelegate:delegate didEndSelector:(SEL)selector contextInfo:(void *)info { - [_window _setStyleMask:NSDocModalWindowMask]; + [_window setStyleMask:NSDocModalWindowMask]; [self layoutIfNeeded]; [_window setDefaultButtonCell:[[_buttons objectAtIndex:0] cell]]; _sheetDelegate=delegate; @@ -440,7 +440,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI } -(NSInteger)runModal { - [_window _setStyleMask:NSTitledWindowMask]; + [_window setStyleMask:NSTitledWindowMask]; [self layoutIfNeeded]; [_window setDefaultButtonCell:[[_buttons objectAtIndex:0] cell]]; return [NSApp runModalForWindow:_window]; diff --git a/AppKit/NSApplication.m b/AppKit/NSApplication.m index 11593c10..19c53ab2 100755 --- a/AppKit/NSApplication.m +++ b/AppKit/NSApplication.m @@ -760,7 +760,7 @@ id NSApp=nil; // Hmmmm, is this correct? if ([sheet styleMask] != NSDocModalWindowMask) - [sheet _setStyleMask:NSDocModalWindowMask]; + [sheet setStyleMask:NSDocModalWindowMask]; [window _attachSheetContextOrderFrontAndAnimate:context]; while([[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]) diff --git a/AppKit/NSWindow-Private.h b/AppKit/NSWindow-Private.h index d02c8c87..8ce48ceb 100755 --- a/AppKit/NSWindow-Private.h +++ b/AppKit/NSWindow-Private.h @@ -28,7 +28,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI -(void)_attachDrawer:(NSDrawer *)drawer; -(void)_detachDrawer:(NSDrawer *)drawer; -(NSView *)_backgroundView; --(void)_setStyleMask:(unsigned)mask; -(void)_animateWithContext:(NSWindowAnimationContext *)context; -(NSWindowAnimationContext *)_animationContext; -(void)_hideMenuViewIfNeeded; diff --git a/AppKit/NSWindow.m b/AppKit/NSWindow.m index 39af20f6..848a3d4f 100755 --- a/AppKit/NSWindow.m +++ b/AppKit/NSWindow.m @@ -269,7 +269,7 @@ NSString *NSWindowDidAnimateNotification=@"NSWindowDidAnimateNotification"; if (_platformWindow == nil) _styleMask = mask; else - [NSException raise:NSInternalInconsistencyException format:@"-[NSWindow _setStyleMask:] platformWindow already created, cannot change style mask"]; + [NSException raise:NSInternalInconsistencyException format:@"-[NSWindow setStyleMask:] platformWindow already created, cannot change style mask"]; } -(void)postNotificationName:(NSString *)name {