سؤال

I'm starting to develop on NBP and I just wanted to ask is there anything like NBP's way of MVC.

Because in cocoa you use subclasses of UIView and UIViewController or you can use xib's etc. In Rails you also put your models, views and controllers in different directories.

So should I divide my code into part's by my self or NBP has also some dedicated classes that should be used.

Also maybe I shouldn't look for MVC if NBP offers some better patterns.

I'll be very thankful for answers, because I don't what to implement something that's already done.

هل كانت مفيدة؟

المحلول

The NetBeans platform is swing with some nifty additions, and If I recall Swing is design is heavily influenced by MVC. So you should be pretty safe using MVC.

Alternatively I've been using the Presentation Model pattern recently (Both on and off the NetBeans platform). What is especially nifty is that the JGoodies Binding Library has specific support for the Presentation Model pattern

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top