Hello all, i have a very noob question about the MCV model to display a data file in a view.
I'm trying to implement Model-Controller-View. So, so far I created a class called FilterBank that will contain all the data to be plotted plus a method to init from a file. Then I included one instance of the class FilterBank in the myDocument class in the readFromURL: method . When I open a file, myDocument will read and load all the data to the class calling the initFromFile: method of FilterBank, and that works ok. Then I can subclass NSView to hold and plot the image using NSImageRep, etc. My problem is with the controller. I subclassed NSViewController (with the name FilterBankViewController) and tried to bind the class with the file's owner. But I noticed that in IB I cannot do that, actually the bind tab says it's "Not Applicable". I don't understand why though, b/c I learned in a tutorial (that loads data from a file and puts that into a table), that you need an NSArrayController to mediate between the table and the file owner. What kind of controller should I use here? How does the view get notified that it should redraw itself and how can I pass the information so that the view knows what to draw? Thanks._______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com