Tested the worksWhenModal stuff for NSColorPanel; it works.

This commit is contained in:
Pietro Gagliardi 2016-05-16 09:40:02 -04:00
parent b47689090e
commit 695bca9033
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,8 @@ struct uiColorButton {
[[NSColorPanel sharedColorPanel] setShowsAlpha:YES];
[super activate:YES];
activeColorButton = self;
// TODO try setWorksWhenModal (I'd need a color well there)
// see stddialogs.m for details
[[NSColorPanel sharedColorPanel] setWorksWhenModal:NO];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(deactivateOnClose:)
name:NSWindowWillCloseNotification

View File

@ -3,7 +3,7 @@
// TODO restructure this whole file
// TODO explicitly document this works as we want
// TODO explicitly disable color dialogs this way
// TODO note that font and color buttons also do this
#define windowWindow(w) ((NSWindow *) uiControlHandle(uiControl(w)))