开发者

Multi window cocoa application

开发者 https://www.devze.com 2023-03-20 09:34 出处:网络
If there are multiple window in an application how do I pass values between them? My first approach would be to create a NSWindowController for any window, and assign these co开发者_高级运维ntroller

If there are multiple window in an application how do I pass values between them?

My first approach would be to create a NSWindowController for any window, and assign these co开发者_高级运维ntrollers to the Application Delegate.

Am I on the right way? What do you suggest?


Yes, your technique is fine. If you are creating a document-based application you can also do this in your NSDocument subclass.

0

精彩评论

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