DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2580
Version: 1.3-current


I'm having problems with the event loop on OS X. The same code works fine
on Windows and Linux.

The issue is that for a while the program has no open Windows, but instead
waits for a file descriptor (registered using Fl::add_fd). On OS X it never
signals that the fd is ready, but works fine on other platforms.

After some digging, it seems that nextEventMatchingMask returns
immediately when there are no windows visible. Hence it never gets a
chance to see the event from the DataReady thread.

I'm a complete noob when it comes to OS X programming, so I'm not sure
what the problem here is. Apple's reference documentation doesn't mention
anything about this method returning immediately. It does however mention
that scenario for more high level run methods. In those cases it is
because there are no "sources". I guess that might be the case here as the
DataReady thing doesn't create any special objects; it only injects a
special event when needed.

I'm trying to understand things better here and try to create one of
theses "sources", but any help you can provide is appreciated.


Link: http://www.fltk.org/str.php?L2580
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to