mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 12:09:51 +00:00
change use of -[NSWindow _setStyleMask:] to setStyleMask:
This commit is contained in:
parent
296325eb14
commit
f4367797a1
@ -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];
|
||||
|
@ -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]])
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user