How can I create a GUI and react to Cocoa events programmatically?

后端 未结 4 473
执笔经年
执笔经年 2020-12-28 11:35

I found out how to create a window in Cocoa programmatically but can\'t figure out how to react to events. The window is not reacting to a Quit request or button click.

4条回答
  •  时光取名叫无心
    2020-12-28 12:12

    Excellent question. I think Matt Gallagher answered it already, but if you want to go further with this, you'll have to delve into Apple's event-handling documentation. Bear in mind that doing everything programmatically will require a solid understanding of cocoa fundamentals.

提交回复
热议问题