mirror of https://github.com/fltk/fltk
Remove a compilation warning appearing with Mac OS 10.11 +
explain better the intent of this thread creation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10840 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
bb3f67ecf7
commit
89589d7c9b
|
@ -1731,9 +1731,10 @@ void fl_open_display() {
|
||||||
name:NSWindowWillCloseNotification
|
name:NSWindowWillCloseNotification
|
||||||
object:nil];
|
object:nil];
|
||||||
if (![NSThread isMultiThreaded]) {
|
if (![NSThread isMultiThreaded]) {
|
||||||
// necessary for secondary pthreads to be allowed to use cocoa,
|
// With older OS X versions, it is necessary to create one thread for secondary pthreads to be
|
||||||
// especially to create an NSAutoreleasePool.
|
// allowed to use cocoa, especially to create an NSAutoreleasePool.
|
||||||
[NSThread detachNewThreadSelector:nil toTarget:nil withObject:nil];
|
// We create a thread that will complete very fast:
|
||||||
|
[NSThread detachNewThreadSelector:@selector(unhide:) toTarget:NSApp withObject:nil];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue