开发者

Which NSTextView is the First Responder?

开发者 https://www.devze.com 2022-12-17 10:01 出处:网络
I\'m working on a Cocoa programming exercise, and I need to be able to determine whi开发者_StackOverflow社区ch of two NSTextView objects is currently being edited. I think it\'s something to do with f

I'm working on a Cocoa programming exercise, and I need to be able to determine whi开发者_StackOverflow社区ch of two NSTextView objects is currently being edited. I think it's something to do with finding the first responder and checking to see if it's equal to one text field or another, but I can't quite get it to work. Any help would be appreciated.


I suggest you to read the Cocoa Event-Handling Guide, and especially the section called Responder-Related Tasks. You will find all the information you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号