Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How do I handle events in Cocoa?

Name: Anonymous 2011-05-21 4:57

Yeah....

http://pastebin.com/EkSf2Cf5

Basically makes a window with a text field in it and uses a while loop to keep it alive until I need it to stop, then frees all the pointers. Unfortunately, every time I hover over the window with my mouse, it has the pinwheel of death and the window can't accept events, such as for example, clicking the x button to destroy it. Not sure how to implement this if it's not being handled by the window server.

Name: Anonymous 2011-05-21 5:45

>>1
Read a book on Cocoa and stop whatever the fuck you're trying to do right now, because you're doing it maximally wrong. However as a first hint, events are processed in the event loop.

IHBT

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List