开发者

Breaking Down NSTabView Into Files

开发者 https://www.devze.com 2023-01-08 22:57 出处:网络
As my Cocoa app comes along, my NSWindowController is becoming huuuuuuuuuuge. My window has an NSTabView, and each tab therein has its own NSViewController (they all have submenus) and its own methods

As my Cocoa app comes along, my NSWindowController is becoming huuuuuuuuuuge. My window has an NSTabView, and each tab therein has its own NSViewController (they all have submenus) and its own methods. So, my WindowController.m seems to stretch well beyond what it's supposed to because of tabs.

Sadly, examples of NSTabView are quite simple. They don't need any restructuring. So, here I am 开发者_开发技巧seeking advice. How can I pull tab-specific content out of the window controller and into their own dedicated objects?


See the example in this Apple Discussions thread: Tab Controllers?

0

精彩评论

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

关注公众号