dimanche 28 juin 2015

Cocoa Windows, not receiving events

For the last few days I've returned to an issue that I've been having for a while now. I've been trying to integrate Cocoa windows into my application, but the [NSApplication run] doesn't fit in with my programs model and getting the user inputs is more difficult than expected, As no event is received by the window.

I checked with XCode the value of _currentEvent and it's consistently nil which leads me to think that the window isn't capturing the events in the first place. I included a screenshot of the window while it's focused, although it doesn't appear to be active as the icons aren't coloured. I've also included the code for the window creation in Objective-C

Note: Calling [application run] does work and I receive inputs with an active looking window once called.

Source: http://ift.tt/1JrC01D

Variables:

Variables

Window:

Window

Aucun commentaire:

Enregistrer un commentaire