change use of -[NSWindow _setStyleMask:] to setStyleMask:

This commit is contained in:
Christopher Lloyd 2010-01-08 01:48:11 +00:00
parent 296325eb14
commit f4367797a1
4 changed files with 4 additions and 5 deletions

View File

@ -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];

View File

@ -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]])

View File

@ -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;

View File

@ -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 {