Tested the worksWhenModal stuff for NSColorPanel; it works.
This commit is contained in:
parent
b47689090e
commit
695bca9033
|
@ -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
|
||||
|
|
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue