Call [NSWindow setRestorable:NO] for each FLTK window.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2013-05-08 13:11:56 +00:00
parent b62d3ae87b
commit 110cd81b1e
+6
View File
@@ -645,6 +645,12 @@ void Fl::remove_timeout(Fl_Timeout_Handler cb, void* data)
if (self) {
w = flw;
containsGLsubwindow = NO;
if (fl_mac_os_version >= 100700) {
// replaces [self setRestorable:NO] that may trigger a compiler warning
typedef void (*setIMP)(id, SEL, BOOL);
setIMP addr = (setIMP)[self methodForSelector:@selector(setRestorable:)];
addr(self, @selector(setRestorable:), NO);
}
}
return self;
}